Roles

Creates a new role in the system. Only admins can add roles.

post/api/v1/roles

Request

Request body

roleNamestring required
roleKeystring
parentRoleIdstring
canEditUsersboolean
canEditPermissionsboolean
canEditLayoutsboolean
descriptionstring

Response

Role created successfully

entityobject
i18nMessagesMapobject
permissionsstring[]

Changes

    • breaking

      request body became required

    • breaking

      removed the media type */* from the request body

    • info

      api operation id addNewRole removed and replaced with createRole

    • info

      api tag Roles added

    • info

      added the media type application/json to the request body

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the success response with the status