Use this API to add a role and grant privileges to the role.
Method |
URL |
Required authentication |
POST |
/V1/CMDB/Roles |
Yes |
Name |
Description |
---|---|
Token*required |
Place the token received from the API Log in to get an authentication token. |
Request*required |
The body contains the following parameters: ▪roleName*(string): the name of the role that you want to add. ▪description (string): the description of the role. ▪privileges (string): the privileges that the role owns. Example: { |
Parameter |
Type |
Description |
Example |
---|---|---|---|
statusCode |
integer |
The returned status code of executing the API. |
{ |
statusDescription |
string |
The explanation of the status code. |