You can call this operation to edit a role.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation only uses common request headers. For more information, see the Common request parameters topic.

Request syntax

POST /pop/v5/account/edit_role HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
ActionData String Yes 15:1

A set of operation permissions to be granted to the role.

RoleId Integer Yes 32371

The ID of the role that you want to edit.

Response parameters

Parameter Type Example Description
Code Integer 200

The returned code.

Message String edit successfully

The returned message.

RequestId String 4823-bhjf-23u4-eiufh

The ID of the request.


Sample requests

POST /pop/v5/account/edit_role HTTP/1.1
Common request headers
  "ActionData": "15:1"
  "RoleId": 32371

Sample success responses

JSON format

    "Message": "edit successfully",
    "RequestId": "",
    "Code": 200

XML format

<Message>edit successfully</Message>

Error codes

For a list of error codes, visit the API Error Center.