Update a Role (Deprecated)
deprecated
This endpoint has been deprecated and may be removed in future versions of the API.
This operation creates a role.
Path Parameters
- roleId string required
- application/json
Request Body
roles object[]
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Update a Role
Schema
roleProperties object[]
{
"roleProperties": [
{
"visibility": 0,
"description": "string",
"role": {
"roleId": 0,
"roleName": "string",
"flags": {
"disabled": true
}
},
"categoryPermission": {
"categoriesPermissionList": [
{
"srmReportSet": 0,
"type": 0,
"srmReportType": 0,
"clientSidePackage": true,
"categoryName": "string",
"_type_": 0,
"consumeLicense": true,
"categoryId": 0,
"permissionId": 0,
"permissionName": "string"
}
]
},
"securityAssociations": {
"associations": [
{
"userOrGroup": [
{
"srmReportSet": 0,
"type": 0,
"srmReportType": 0,
"clientSidePackage": true,
"userId": 0,
"_type_": 0,
"userName": "string",
"consumeLicense": true
}
],
"properties": {
"isCreatorAssociation": true,
"role": {
"_type_": 0,
"roleId": 0,
"roleName": "string"
}
}
}
],
"ownerAssociations": {}
}
}
]
}
{
"response": [
{
"errorString": "Successful",
"errorCode": 0,
"entity": {
"roleName": "TestRole",
"roleId": 34
}
}
]
}
POST /role/:roleid
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Role/:roleId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"roles": [
{
"description": "string",
"role": {
"roleName": "string",
"flags": {
"disabled": true
}
},
"categoryPermission": {
"categoriesPermissionOperationType": 0,
"categoriesPermissionList": [
{
"categoryName": "string",
"permissionName": "string"
}
]
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Role/:roleId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"roles": [
{
"description": "string",
"role": {
"roleName": "string",
"flags": {
"disabled": true
}
},
"categoryPermission": {
"categoriesPermissionOperationType": 0,
"categoriesPermissionList": [
{
"categoryName": "string",
"permissionName": "string"
}
]
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Role/:roleId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"roles": [
{
"description": "string",
"role": {
"roleName": "string",
"flags": {
"disabled": true
}
},
"categoryPermission": {
"categoriesPermissionOperationType": 0,
"categoriesPermissionList": [
{
"categoryName": "string",
"permissionName": "string"
}
]
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Role/:roleId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"roles": [
{
"description": "string",
"role": {
"roleName": "string",
"flags": {
"disabled": true
}
},
"categoryPermission": {
"categoriesPermissionOperationType": 0,
"categoriesPermissionList": [
{
"categoryName": "string",
"permissionName": "string"
}
]
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Role/:roleId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"roles": [
{
"description": "string",
"role": {
"roleName": "string",
"flags": {
"disabled": true
}
},
"categoryPermission": {
"categoriesPermissionOperationType": 0,
"categoriesPermissionList": [
{
"categoryName": "string",
"permissionName": "string"
}
]
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Role/:roleId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"roles": [
{
"description": "string",
"role": {
"roleName": "string",
"flags": {
"disabled": true
}
},
"categoryPermission": {
"categoriesPermissionOperationType": 0,
"categoriesPermissionList": [
{
"categoryName": "string",
"permissionName": "string"
}
]
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Role/:roleId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"roles": [
{
"description": "string",
"role": {
"roleName": "string",
"flags": {
"disabled": true
}
},
"categoryPermission": {
"categoriesPermissionOperationType": 0,
"categoriesPermissionList": [
{
"categoryName": "string",
"permissionName": "string"
}
]
}
}
]
}'