Skip to main content
POST
Create a role of your own

Authorizations

X-Auth-Token
string
header
required

FlowPayroll JWT (raw token, no Bearer prefix)

Body

application/json

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

roleId
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.

name
string | null

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

description
string | null

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

permissions
string[] | 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.

Response

Created

message
object
content
object
validationIssues
object[] | null