Create a Role
Select
Create a new role
- application/json
Request Body
- name string required
Name of the new role
permissionList object[] required
Used to provide the list of permissions associated with the role.
permission object
id int32name stringcategory object
id int32name string- enabled boolean
Used to determine if the role is enabled or disabled. If not provided, role will be enabled by default.
- visibleToAll boolean
Determines if the role is visible to everyone. if not provided, it will be set to false by default.
globalConfigInfo object
Only applicable to Global CommCells
name stringcommcells object[]
List of Service CommCells where the global configuration should be applied
id int32name stringguid stringscope stringThe entity level at which the config has to be applied.
scopeFilterQuery stringCommCellEntityCache filter query string using for filtering the scope
applyOnAllCommCells booleanDecides whether the global configuration should be applied to all the Service commcells, including the newly created ones
actionOnLocalEntity stringPossible values: [
CREATE_NEW
,TAKE_OVER
,FAIL_IF_EXIST
]Action that will be taken on the local entity that has the same name as the global entity that needs to be created
- 200
- 400
- 500
Success
- application/json
- Schema
- Example (from schema)
Schema
- id int32
- GUID string
- name string
{
"id": 0,
"GUID": "string",
"name": "string"
}
Bad Request
Internal Server Error