Create a Role (Deprecated)
deprecated
This endpoint has been deprecated and may be removed in future versions of the API.
This operation creates a role.
Header Parameters
- Content-Type string required
Possible values: [
application/xml
]
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Create a Role
Schema
response object[]
{
"response": [
{
"errorString": "string",
"errorCode": 0,
"entity": {
"roleName": "string",
"roleId": 0,
"flags": {
"disabled": true
}
}
}
]
}
{
"response": [
{
"errorString": "Successful",
"errorCode": 0,
"entity": {
"roleName": "TestRole",
"roleId": 33,
"flags": {
"disabled": false
}
}
}
]
}
POST /role
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Role' \
-H 'Content-Type: application/xml' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw ''
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Role' \
-H 'Content-Type: application/xml' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw ''
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Role' \
-H 'Content-Type: application/xml' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw ''
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Role' \
-H 'Content-Type: application/xml' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw ''
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Role' \
-H 'Content-Type: application/xml' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw ''
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Role' \
-H 'Content-Type: application/xml' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw ''
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Role' \
-H 'Content-Type: application/xml' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw ''