Employee Identity (EIAM)

Disable Application Account

API

# 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
account_all Read and write permissions for account management interfaces
all Read and write permissions for all interfaces

# Request Specification

PUT https://{your_domain}/api/v2/tenant/applications/{app_id}/accounts/{app_user_id}/disable

# 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
app_id Application ID Yes String Target application ID
app_user_id Application Account ID Yes String

# Response Example

Correct Example:
HTTP/1.1 200 OK
{
    "account_id": "20220415171558023-84A4-ED5C390B8"
}


Error Example:
HTTP/1.1 400 Bad Request
{
    "error_code": " APP.ACCOUNT.0028",
    "error_msg": "应用账号不存在"
}
1
2
3
4
5
6
7
8
9
10
11
12
13

# Response Parameters

Parameter Name Chinese Name Type Description
account_id Application Account ID String

# Error Codes

Status Code Error Code Error Message Handling Measures
400 APP.ACCOUNT.0028 应用账号不存在 请检查应用账号是否存在
The application account does not exist