Modifies a Resource Access Management (RAM) 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 uses only the common request header. For more information, see Common request parameters.

Request syntax

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

Request parameters

Parameter Type Required Example Description
ActionData String Yes 15:1

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

RoleId Integer Yes 32371

The ID of the role.

Response parameters

Parameter Type Example Description
Code Integer 200

The HTTP status 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 header
  "ActionData": "15:1"
  "RoleId": 32371

Sample success responses

XML format

<Message>edit successfully</Message>

JSON format

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

Error codes

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