Delete Application Account Role
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, see API Permissions.
| Permission Code | Description |
|---|---|
| account_all | Read/Write permission for account management APIs |
| all | Read/Write permission for all APIs |
Request Description
Request Headers
| Parameter Name | 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
json
{
"role_ids": [
"20220415170305200-EF22-C2404E358",
"20220415170305223-7193-A01122B37"
]
}Request Parameters
| Parameter Name | Name | Required | Type | Description |
|---|---|---|---|---|
| app_id | Application ID | Yes | String | Target application ID |
| account_id | Application account ID | Yes | String | Target account ID |
| role_ids | Application role ID set | Yes | List | Max capacity 50 |
Response Example
Success Example
HTTP/1.1 200 OK
json
{
"success_list": [
"20220415170305200-EF22-C2404E358",
"20220415170305223-7193-A01122B37"
],
"fail_list": []
}Error Example
HTTP/1.1 400 Bad Request
json
{
"error_code": " APP.0001",
"error_msg": "应用不存在"
}Response Parameters
| Parameter Name | Name | Type | Description |
|---|---|---|---|
| success_list | Success set | List | Application role ID set |
| fail_list | Failure set | List | Application role ID set |
Error Codes
| Status Code | Error Code | Chinese Error Message | English Error Message | Resolution |
|---|---|---|---|---|
| 400 | APP.OBJECTMODEL.0006 | 未开启应用角色模型 | The application role model is not opened | Please check whether the application role model is enabled |
| 400 | APP.0001 | 应用不存在 | App does not exist | Please check whether the app has been deleted |
| 400 | APP.ACCOUNT.0028 | 应用账号不存在 | App account does not exist | Please check whether the application account has been deleted |