Cancels a role.
Operation description
You can cancel only the group administrator role.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
POST /v2/role/cancel_assign HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
body | object | No | ||
identity | Identity | Yes | The unique identifier. You can cancel only the role assigned to a user. | |
role_id | string | Yes | The ID of the role to be canceled. Set the value to SystemGroupAdmin, which is the ID of the group administrator role. | SystemGroupAdmin |
manage_resource_type | string | Yes | The type of the resource that the role manages. Set the value to RT_Group, which specifies group. | RT_Group |
manage_resource_id | string | Yes | The ID of the resource that the role manages. Set the value to a group ID. | 105***b82 |
Response parameters
Examples
Sample success responses
JSON
format
{}
Error codes
For a list of error codes, visit the Service error codes.