Product documentation
TestDataWipe
The TestDataWipe resource.
TestDataWipe
The TestDataWipe resource.
Base URL: https://api.stg.thoryn.org
Operations
| Method | Path | Summary | Scopes |
|---|---|---|---|
POST | /api/v1/test-data/wipe | Wipe a sandbox environment's data | tenant: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/json → WipeTestDataRequest
Responses:
| Status | Description | Body |
|---|---|---|
200 | Sandbox data wiped; per-table counts returned. | WipeTestDataResponse |
400 | The confirm field is missing. | — |
401 | Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim. | Problem (problem+json) |
403 | Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path. | Problem (problem+json) |
422 | The confirm value does not match the tenant slug. | — |