PUT ./roles

Used to update a role.

The fields ar the same as in POST ./roles with the exception that roleUaTip cannot be changed.

If rolePermissions is omitted then the permissions assigned remain the same. If it's present the permission will be overwritten with those in PUT.

PUT parameters

NameValue TypeValidationDetails
roleNamestringRequiredmin_length[2],max_length[50]; Role name.
roleIsAdministrativeintOptionalvalues[0,1]; Sets if roles is an administrative role.
roleIsImplicitintOptionalvalues[0,1]; Sets if the role is implicit for the specified uaTip. Only applies to uaTip = 2,3
roleVisibleInTitleintOptionalvalues[0,1]; Sets if the role is visible in user title.
rolePermissions[][int]OptionalArray of permission ID's.
roleIsImplicitAst[][int]OptionalArray of astID's that this role is implicit. Cand be sent empty to remove all implicit astID's.

Validation

Error FieldError CodeError Message
rolePermissions[]101At least one permission has an invalid ID.
rolePermissions[]102At least one permission is not available for the specified uaTip.
roleName103Role not found.
rolePermissions[]104Implicit role ast is not available for the specified uaTip.
rolePermissions[]105At least one astIDis invalid.

Output example

{
"result": true
}