DELETE /config/access/tenant_management/tenants/{tenant_id}
Delete a tenant.
Deletes a tenant by tenant ID. You must have the System Administrator or Security Administrator permissions to call this endpoint.
MIME Type |
---|
application/json |
Parameter | Type | Optionality | Data Type | MIME Type | Description |
---|---|---|---|---|---|
tenant_id |
path |
Required |
Number (Integer) |
text/plain |
Required - String - The ID of the tenant that is being deleted. |
HTTP Response Code | Unique Code | Description |
---|---|---|
200 |
The tenant was successfully deleted. |
|
404 |
1002 |
The tenant does not exist. |
422 |
1003 |
The tenant cannot be deleted while there are domains assigned to it. |
422 |
1010 |
The tenant cannot be deleted because it is assigned to deployed actors. |
422 |
1011 |
The tenant cannot be deleted because it is assigned to staged actors. |
500 |
1020 |
An error occurred while deleting tenant. |
Response Description
The deleted tenant object with its parameter deleted set to true
- id - Integer - The ID of the tenant.
- name - String - The name of the tenant.
- description - String - The description of the tenant.
- event_rate_limit - Integer - The event rate limit that is assigned to the tenant.
- flow_rate_limit - Integer - The flow rate limit that is assigned to the tenant.
- deleted - Boolean - Whether or not the tenant has been deleted. Will be true if the tenant has been deleted, and false if it is still active.
Response Sample
{
"deleted": true,
"description": "String",
"event_rate_limit": 42,
"flow_rate_limit": 42,
"id": 42,
"name": "String"
}