All Products
Search
Document Center

Enterprise Distributed Application Service:UpdateRole

Last Updated:Mar 01, 2024

Modifies a 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 /pop/v5/account/edit_role

Request parameters

ParameterTypeRequiredDescriptionExample
RoleIdintegerYes

The ID of the role. You can call the ListRole operation to query the role IDs. For more information, see ListRole .

32371
ActionDatastringYes

The set of permissions to be granted to the role. The value is in the format of Permission group ID 1:Permission serial number 1;...;Permission group ID n:Permission serial number n. Example: 1:1;1:2;2:1;2:2. For more information about permission groups and permission serial numbers, see ListAuthority .

15:1

Response parameters

ParameterTypeDescriptionExample
object

The content that is returned.

Codeinteger

The HTTP status code that is returned.

200
Messagestring

The additional information that is returned.

edit successfully
RequestIdstring

The ID of the request.

4823-bhjf-23u4-****

Examples

Sample success responses

JSONformat

{
  "Code": 200,
  "Message": "edit successfully",
  "RequestId": "4823-bhjf-23u4-****"
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history