Employee Identity (EIAM)

Delete Organization

Interface

# Permissions

The Identity Management API is authorized at the application level. Before calling the interface, you need to set interface permissions for different applications. For details, please refer to API Permissions.

Permission Code Description
org_all Read and write permissions for organization management interfaces
all Read and write permissions for all interfaces

# Request Specification

DELETE https://{your_domain}/api/v2/tenant/organizations/{org_id}

# Request Headers

Parameter Name Chinese Name Required Type Description
Authorization Authorization Yes String Format: Bearer {access_token}
Content-Type Content Type Yes String Fixed value: application/json; charset=utf-8

# Request Example

None

# Request Parameters

Parameter Name Chinese Name Required Type Description
org_id Organization ID Yes String Organization ID

# Return Example

Success Example:
HTTP/1.1 204 No Content

Error Example:
HTTP/1.1 400 Bad Request
{
	"error_code": "ORG.0001",
	"error_msg": "Organization does not exist"
}
1
2
3
4
5
6
7
8
9

# Return Parameters

None

# Error Codes

Status Code Error Code Error Message Handling Measures
400 ORG.0001 Organization does not exist Please check if the corresponding organization exists
400 ORG.0020 The existing sub-organization under the current organization cannot be deleted Please check if there are any sub-organizations under the current organization
400 ORG.0021 User groups that exist in the current organization cannot be deleted Please check if there are any user groups under the current organization
400 ORG.0022 Users in the current organization cannot be deleted Please check if there are any users under the current organization

I am ready. Please provide the Markdown content for translation.