Employee Identity (EIAM)

Delete Application Organization

API

# Permissions {/permissions/}

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

Permission Code Description
app_org_all Read and write permissions for the application organization management API
all Read and write permissions for all APIs

# Request Specification {/request-specification/}

DELETE https://{your_domain}/api/v2/tenant/applications/{app_id}/organizations/{app_org_id}

# Request Headers {/request-headers/}

Parameter 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 {/request-example/}

None

# Request Parameters {/request-parameters/}

Parameter Chinese Name Required Type Description
app_id Application ID Yes String Target Application ID
app_org_id Application Organization ID Yes String Target Application Organization ID

# Response Example

Correct Example:
HTTP/1.1 204 No Content


Error Example:
HTTP/1.1 400 Bad Request
{
    "error_code": " APP.ORG.0024",
    "error_msg": "应用机构不存在"
}
1
2
3
4
5
6
7
8
9
10

# Response Parameters

None

# Error Codes

Status Code Error Code Error Message Handling Measures
400 APP.ORG.0024 应用机构不存在 请检查应用机构是否已被删除
The application organization does not exist
400 APP.ORG.0027 删除机构失败,当前机构下存在子机构 请检查应用机构下是否存在子机构
Failed to delete the organization. There are children organizations under the current organization
400 APP.ORG.0028 删除机构失败,当前机构下存在账号 请检查应用机构下是否存在账号
Failed to delete the organization, there is an account under the current organization

I'm ready to proceed. Please paste the Markdown content you need translated.