Skip to content

Product documentation

TestDataWipe

The TestDataWipe resource.

TestDataWipe

The TestDataWipe resource.

Base URL: https://api.stg.thoryn.org

Operations

MethodPathSummaryScopes
POST/api/v1/test-data/wipeWipe a sandbox environment's datatenant:settings.write

Operation details

POST /api/v1/test-data/wipe

Wipe a sandbox environment's data

Permanently deletes every row in the caller's SELECTED sandbox environment across the customer-plane sweep, leaving production data and every other sandbox untouched. Select the target sandbox via the X-Thoryn-Environment header; a production or unset target is refused. Requires a confirm body field equal to the tenant slug. Idempotent. The immutable audit trail is not cleared, and the wipe records itself as a production-plane audit event.

  • Operation ID: testDataWipeWipe
  • Required scopes: tenant:settings.write

Request body: application/jsonWipeTestDataRequest

Responses:

StatusDescriptionBody
200Sandbox data wiped; per-table counts returned.WipeTestDataResponse
400The confirm field is missing.
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)
422The confirm value does not match the tenant slug.