Role Config
You need the Manage Agent & Agent Roles permission to manage role configs.
Role Configs
- Role Configs Manage
GET global/roleConfig
POST global/roleConfig:disable
POST global/roleConfig:enable
PUT global/roleConfig
Model
Role Config JSON Format
Role Config is represented as simple flat JSON objects with the following keys:
Name | Type | Description |
---|---|---|
isEnabled |
bool | Whether Role is enabled or not. |
Endpoint
Get a single Role Config
GET global/roleConfig
Example
Sample Request:
curl https://api15.comm100.io/v4/global/roleConfig \
-X
'GET'
\
-H
'Authorization: Bearer {access_token}'
\
Response:
HTTP/1.1 200 OK
Disable the Role Config
POST global/roleConfig:disable
Example
Sample Request:
curl https://api15.comm100.io/v4/global/roleConfig:disable \
-X
'POST'
\
-H
'Authorization: Bearer {access_token}'
\
Response:
HTTP/1.1 200 OK
Enable the Role Config
POST global/roleConfig:enable
Example
Sample Request:
curl https://api15.comm100.io/v4/global/roleConfig:enable \
-X
'POST'
\
-H
'Authorization: Bearer {access_token}'
\
Response:
HTTP/1.1 200 OK
Update the Role Config
PUT global/roleConfig
Parameters:
Name | Type | In | Required | Description |
---|---|---|---|---|
isEnabled |
bool | body | no | Whether Role is enabled or not. |
Response:
Example
Sample Request:
curl https://api15.comm100.io/v4/global/roleConfig \
-X
'PUT'
\
-H
'Authorization: Bearer {access_token}'
\
-H
'Content-Type: application/json'
\
-D
'{"isEnabled":true}'
Response:
HTTP/1.1 200 OK