All Products
Search
Document Center

Drive and Photo Service:CancelAssignRole

Last Updated:Sep 29, 2024

Cancels a role.

Operation description

You can cancel only the group administrator role.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

POST /v2/role/cancel_assign HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
bodyobjectNo
identityIdentityYes

The unique identifier. You can cancel only the role assigned to a user.

role_idstringYes

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_typestringYes

The type of the resource that the role manages. Set the value to RT_Group, which specifies group.

RT_Group
manage_resource_idstringYes

The ID of the resource that the role manages. Set the value to a group ID.

105***b82

Response parameters

ParameterTypeDescriptionExample
The current API has no return parameters

Examples

Sample success responses

JSONformat

{}

Error codes

For a list of error codes, visit the Service error codes.