All Products
Search
Document Center

Drive and Photo Service:CancelAssignRole

Last Updated:Aug 04, 2025

Cancels a role.

Operation description

You can cancel only the group administrator role.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.