POST ./roles

Can be used to create new roles.

POST parameters

NameValue TypeValidationDetails
roleNamestringRequiredmin_length[2],max_length[50]; Role name.
roleUaTipintRequiredvalues[1,2,3]; uaTip for wich the role is limited to.
roleIsAdministrativeintRequiredvalues[0,1]; Sets if roles is an administrative role.
roleIsImplicitintRequiredvalues[0,1]; Sets if the role is implicit for the specified uaTip. Only applies to uaTip = 2,3
roleVisibleInTitleintRequiredvalues[0,1]; Sets if the role is visible in user title.
rolePermissions[][int]RequiredArray of permission ID's.
roleIsImplicitAst[][int]RequiredArray of astID's that this role will be implicit to.

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.
roleIsImplicitAst[]103At least one astID is invalid.
roleIsImplicitAst[]104Implicit role ast is not available for the specified uaTip.

Output example

{
"roleID": 155
}