Remove Application-Side Role Member
Permissions
The identity management API is authorized by application. Before calling the API, you need to set API permissions for different applications. For details, see API Permissions.
| Permission Code | Description |
|---|---|
| app_role_all | Read/Write permission for application-side role APIs |
| all | Read/Write permission for all APIs |
Request
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_id": "20220420144449385-C66D-E8C1D1D79",
"account_Ids": [
"20220414163425614-2FD6-CA9B208BE"
]
}Request Parameters
| Parameter Name | Name | Required | Type | Description |
|---|---|---|---|---|
| app_id | Application ID | Yes | String | Target application ID |
| role_id | Application-side role ID | Yes | String | Target role ID |
| account_Ids | Application account ID collection | Yes | List | Max size 50 |
Response Example
Success Example
HTTP/1.1 200 OK
json
{
"success_list": [
"20220414163425614-2FD6-CA9B208BE"
],
"fail_list": []
}Error Example
HTTP/1.1 400 Bad Request
json
{
"error_code": " APP.ROLE.0002",
"error_msg": "The application-side role does not exist"
}Response Parameters
| Parameter Name | Name | Type | Description |
|---|---|---|---|
| success_list | Success list | List | Application account ID collection |
| fail_list | Failure list | List | Application account ID collection |
Error Codes
| Status Code | Error Code | Chinese Error Message | English Error Message | Resolution |
|---|---|---|---|---|
| 400 | APP.ROLE.0002 | 应用侧角色不存在 | The application side role does not exist | Please check whether the application-side role has been deleted |
| 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 application has been deleted |