You can call this operation to authorize a role.

Debugging

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 header

Request syntax

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

Request parameters

Parameter Type Required Example Description
TargetUserId String Yes test@133******

The ID of the Ram user to be authorized.

RoleIds String No 1;2

The role ID, separated with ";". If this parameter is null, the role authorization is canceled.

Response parameters

Element Type Example Description
Code Integer 200

The returned code.

Message String Success

The returned message.

RequestId String 57609587-DFA2-****

Samples

Sample requests

POST /pop/v5/account/authorize_role HTTP/1.1
Common request header
{
  "TargetUserId": ""
}

Sample success responses

XML format

<RequestId>57609587-DFA2-41EC-****-*********</RequestId>
<Code>200</Code>
<Message>success</Message>

JSON format

{
    "RequestId": "57609587-DFA2-41EC-****-*********",
    "Code": "200",
    "Message": "success"
}

Error codes

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