organization_not_empty
Developer and IT administrator messages for organization_not_empty.
Since API version 1.0.
| Field | Value |
|---|---|
| Type | conflict |
| Status | 409 |
| Surfaces | api |
| Retryable | No |
What it means
Section titled “What it means”The organization cannot be deleted while it still has connections, directories or live API keys. param counts what is left, for example connections:, or names the table of another record that still refers to the organization. Revoked API keys and the organization’s settings do not block the delete; they are removed with the organization.
Likely causes
Section titled “Likely causes”- The organization still has an SSO connection or a directory.
- An API key scoped to the organization has not been revoked.
- Another record still refers to the organization;
paramthen names its table.
How to fix it
Section titled “How to fix it”For developers
Section titled “For developers”- Read
param, delete each remaining connection and directory, and revoke each live API key, then retry the delete. - If
paramnames a table, remove those records first, or contact support if you cannot.
For IT administrators
Section titled “For IT administrators”- Ask the app’s team to remove the organization’s connections and directories first.
Example
Section titled “Example”HTTP status 409 when only an API key is left:
{ "error": { "type": "conflict", "code": "organization_not_empty", "message": "Delete the organization's API keys (revoke them) first; `param` counts what is left", "param": "connections:0,directories:0,api_keys:1", "doc_url": "https://docs.ohauthcat.com/errors/organization_not_empty", "request_id": "req_01J9Z3K5V7W8X9Y0Z1A2B3C4D5" }}Developer message
Section titled “Developer message”The organization still has connections, directories or live API keys; delete or revoke them first (param lists what is left, e.g. connections:, or names the table of another child). Revoked keys and the organization’s settings are deleted with it
IT administrator message
Section titled “IT administrator message”This organization still has connections or directories
Translated IT administrator messages
Section titled “Translated IT administrator messages”The hosted portal shows these machine translations, which native speakers have not reviewed yet. Placeholders and identity provider console labels stay in English.
de: Diese Organisation hat noch Verbindungen oder Verzeichnissees: Esta organización todavía tiene conexiones o directoriosfr: Cette organisation a encore des connexions ou des annuairesja: この組織にはまだ接続またはディレクトリがありますpt-BR: Esta organização ainda tem conexões ou diretórios