Clean up failed tenant provisioning
POST
/api/admin/tenants/{id}/provisioning/cleanup
Code sample: Shell / cURL
curl --request POST \ --url https://auth.example.com/api/admin/tenants/example/provisioning/cleanup \ --header 'Authorization: Bearer <token>'Removes a failed tenant D1 provisioning draft while preserving the contaminated slot for reset.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Responses
Section titled “ Responses ”Tenant provisioning cleanup response.
Media type application/json
object
status
string
tenant_id
string
slot_id
string | null
key
additional properties
Example
{ "status": "cleaned", "tenant_id": "acme", "slot_id": "slot-0001"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}