Create role
The permission to create a role must be a subset of the current account permissions
| Parameter | Description | Required |
|---|---|---|
| action | createRole | True |
| name | role name | True |
| group | Groups and items within groups | True |
response: No text
{
"err":0,
"desc":"ERR_NONE"
}
possible errors:
| Response error code | Description | Details |
|---|---|---|
| 0x0006 | ERR_FORMAT_ERROR | Format error |
| 0x000B | ERR_NO_PERMISSION | No permissions |
| 0x0170 | ERR_NOT_FOUND_DEFINEDROLE | Role not found |
| 0x0184 | ERR_NOT_FOUND_PERMISSION_GROUP | Unable to find permission group |