Skip to main content

Role

This model represents role used for authorization. Roles are assigned to Users.

PropertyTypeDescriptionInformation
idintIdentifierUnique for single role.
namestringName of roleMaximal length is 50 characters.
is_activeboolIndicates role activitytrue for active role, false for inactive role. Inactive role has no permissions.
is_protectedboolIndicates whether role is protectedtrue for protected role, false for unprotected role. Protected role cannot be updated nor deleted.

Example:

 {
"id": 1,
"name": "Administrator",
"is_active": true,
"is_protected": true
}