Employee Identity (EIAM)

Update Application Account

Interface

# Permissions

The Identity Management API is authorized on an application dimension. 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}

# 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

{
    "account_name":"zhangsan111",
    "name":"zhangs111",
    "org_code":"",
    "password":"",
    "disabled":false,
    "extension":{}
}
1
2
3
4
5
6
7
8

# Request Parameters

Parameter Name Chinese Name Required Type Description
app_user_id Application Account ID Yes String Target application account ID
account_name Application Account Name Yes String Application account name
name Name No String
org_code Application Organization Code No String
password Password No String
disabled Disabled or Not No Boolean
extension Extension Attributes No Object

# Response Example

Correct Example:
HTTP/1.1 201 Created
{
    "account_id": "20220414163425614-2FD6-CA9B208BE"
}


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

# Response Parameters

Parameter Chinese Name Type Description
account_id Application Account ID String

# Error Codes

Status Code Error Code Error Message Handling Action
400 APP.0001 Application does not exist Please check if the application exists
App does not exist
400 APP.ACCOUNT.0028 Application account does not exist Please check if the application account exists
The application account does not exist
400 APP.ORG.0024 Application organization does not exist Please check if the application organization exists
The application organization does not exist
400 APP.ACCOUNT.0013 Account name already exists Please check if the application account name already exists
Account name already exists
400 APP.OBJECTMODEL.0005 Application organization model is not enabled Please check if the application organization model is enabled
The application organization model is not opened

I'm ready. Please provide the Markdown content you need translated.