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[]
description stringrole object
roleName stringflags object
disabled booleancategoryPermission object
categoriesPermissionOperationType integercategoriesPermissionList object[]
categoryName stringpermissionName string
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Update a Role
Schema
roleProperties object[]
visibility integerdescription stringrole object
roleId integerroleName stringflags object
disabled booleancategoryPermission object
categoriesPermissionList object[]
srmReportSet integertype integersrmReportType integerclientSidePackage booleancategoryName string_type_ integerconsumeLicense booleancategoryId integerpermissionId integerpermissionName stringsecurityAssociations object
associations object[]
userOrGroup object[]
srmReportSet integertype integersrmReportType integerclientSidePackage booleanuserId integer_type_ integeruserName stringconsumeLicense booleanproperties object
isCreatorAssociation booleanrole object
_type_ integerroleId integerroleName stringownerAssociations 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
}
}
]
}
Loading...