Create a role of your own

Needs permission role:write.

201 with the new role and its address in Location. roleId is custom. followed by 3 to 40 lower-case letters, numbers or hyphens, made from the name when you leave it out; it never changes. Pick permissions from the catalogue: employee:read, employee:* for every level of one area, or *. Nobody can build or change a role to include more than they hold themselves, and changing roles needs permission to manage roles (403 role_management_denied, role_change_denied). 409 role_already_exists for an id you already use, 409 role_limit_reached at 50 roles.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

A role of your own: what it is called and exactly what it lets people do.

string | null

Optional. custom. followed by 3 to 40 lower-case letters, numbers or hyphens, such as custom.hr-team.
Made from the name when left out. It never changes once the role exists.

string | null

Required. 2 to 60 characters, such as "HR team".

string | null

Optional. Up to 300 characters saying who the role is for.

permissions
array of strings | null

Required. 1 to 100 permissions from the catalogue: resource:verb (employee:read), resource:*
for every level of one area, or * for everything. You can only include permissions you hold yourself.

permissions
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json