Skip to main content

UpdateRole

Update a role.

Parameters

  • name: role's name.
  • [optional] objects: permisions for objects.
  • [optional] indexes: permisions for indexes.
  • [optional] access_control: permisions for access_control.

Details

A role's parameters that are not specified will remain unchanged.

Examples

Add permissions to update and delete objects and to create indexes to the "researcher" role:


[{
"UpdateRole": {
"name": "researcher",
"objects": {
"update": true,
"delete": true
},
"indexes": {
"create": true
}
}
}]

Result from a successful update:


[{
"UpdateRole": {
"status": 0
}
}]

Remove permissions to create objects and to read access_control to the "architect" role:


[{
"UpdateRole": {
"name": "architect",
"objects": {
"create": false
},
"access_control": {
"read": false
}
}
}]

Result from a successful update:


[{
"UpdateRole": {
"status": 0
}
}]