Skip to content

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.

id
required
string

Tenant provisioning cleanup response.

Media type application/json
object
status
string
Allowed values: cleaned
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"
}