Create a Role
Select
SaaS
Customer Managed
Create a new role
- application/json
Request Body
- name string required
Name of the new role
permissionList object[] required
- 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
Responses
- 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
POST /v4/role
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Role' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"permissionList": [
{
"permission": {
"id": 0,
"name": "string"
},
"category": {
"id": 0,
"name": "string"
}
}
],
"enabled": true,
"visibleToAll": true,
"globalConfigInfo": {
"name": "string",
"commcells": [
{
"id": 0,
"name": "string",
"guid": "string"
}
],
"scope": "string",
"scopeFilterQuery": "string",
"applyOnAllCommCells": true,
"actionOnLocalEntity": "CREATE_NEW"
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Role' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"permissionList": [
{
"permission": {
"id": 0,
"name": "string"
},
"category": {
"id": 0,
"name": "string"
}
}
],
"enabled": true,
"visibleToAll": true,
"globalConfigInfo": {
"name": "string",
"commcells": [
{
"id": 0,
"name": "string",
"guid": "string"
}
],
"scope": "string",
"scopeFilterQuery": "string",
"applyOnAllCommCells": true,
"actionOnLocalEntity": "CREATE_NEW"
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Role' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"permissionList": [
{
"permission": {
"id": 0,
"name": "string"
},
"category": {
"id": 0,
"name": "string"
}
}
],
"enabled": true,
"visibleToAll": true,
"globalConfigInfo": {
"name": "string",
"commcells": [
{
"id": 0,
"name": "string",
"guid": "string"
}
],
"scope": "string",
"scopeFilterQuery": "string",
"applyOnAllCommCells": true,
"actionOnLocalEntity": "CREATE_NEW"
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Role' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"permissionList": [
{
"permission": {
"id": 0,
"name": "string"
},
"category": {
"id": 0,
"name": "string"
}
}
],
"enabled": true,
"visibleToAll": true,
"globalConfigInfo": {
"name": "string",
"commcells": [
{
"id": 0,
"name": "string",
"guid": "string"
}
],
"scope": "string",
"scopeFilterQuery": "string",
"applyOnAllCommCells": true,
"actionOnLocalEntity": "CREATE_NEW"
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Role' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"permissionList": [
{
"permission": {
"id": 0,
"name": "string"
},
"category": {
"id": 0,
"name": "string"
}
}
],
"enabled": true,
"visibleToAll": true,
"globalConfigInfo": {
"name": "string",
"commcells": [
{
"id": 0,
"name": "string",
"guid": "string"
}
],
"scope": "string",
"scopeFilterQuery": "string",
"applyOnAllCommCells": true,
"actionOnLocalEntity": "CREATE_NEW"
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Role' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"permissionList": [
{
"permission": {
"id": 0,
"name": "string"
},
"category": {
"id": 0,
"name": "string"
}
}
],
"enabled": true,
"visibleToAll": true,
"globalConfigInfo": {
"name": "string",
"commcells": [
{
"id": 0,
"name": "string",
"guid": "string"
}
],
"scope": "string",
"scopeFilterQuery": "string",
"applyOnAllCommCells": true,
"actionOnLocalEntity": "CREATE_NEW"
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Role' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"permissionList": [
{
"permission": {
"id": 0,
"name": "string"
},
"category": {
"id": 0,
"name": "string"
}
}
],
"enabled": true,
"visibleToAll": true,
"globalConfigInfo": {
"name": "string",
"commcells": [
{
"id": 0,
"name": "string",
"guid": "string"
}
],
"scope": "string",
"scopeFilterQuery": "string",
"applyOnAllCommCells": true,
"actionOnLocalEntity": "CREATE_NEW"
}
}'