All Products
Search
Document Center

Enterprise Distributed Application Service:InsertRole

Last Updated:Mar 01, 2024

Creates 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/create_role

Request parameters

ParameterTypeRequiredDescriptionExample
RoleNamestringYes

The name of the role.

testrole
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;14:2

Response parameters

ParameterTypeDescriptionExample
object
Codeinteger

The HTTP status code that is returned.

200
Messagestring

The additional information that is returned.

success
RequestIdstring

The ID of the request.

57609587-DFA2-41EC-****-*********
RoleIdinteger

The ID of the role.

33

Examples

Sample success responses

JSONformat

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

Error codes

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

Change history

Change timeSummary of changesOperation
No change history