Creates a role.
Debugging
Request headers
This operation uses only common request headers. For more information, see the topic about common request parameters.
Request syntax
POST /pop/v5/account/create_role HTTP/1.1
Request parameters
Parameter | Type | Position | Required | Example | Description |
---|---|---|---|---|---|
ActionData | String | Query | Yes | 15:1;14:2 |
The set of permissions to be granted to the role. The value is in the format of |
RoleName | String | Query | Yes | testrole |
The name of the role. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | Integer | 200 |
The HTTP status code. |
Message | String | success |
The returned message that indicates whether the call is successful. |
RequestId | String | 57609587-DFA2-41EC-****-********* |
The ID of the request. |
RoleId | Integer | 33 |
The ID of the role. |
Examples
Sample requests
POST /pop/v5/account/create_role HTTP/1.1
Common request headers
{
"ActionData": ""
"RoleName": ""
}
Sample success responses
XML
format
<RequestId>57609587-DFA2-41EC-****-*********</RequestId>
<Code>200</Code>
<Message>sucess</Message>
JSON
format
{
"RequestId": "57609587-DFA2-41EC-****-*********",
"Code": "200",
"Message": "sucess"
}
Error codes
For a list of error codes, visit the API Error Center.