Skip to main content
POST
Create Role

Authorizations

x-client-key
string
header
required
x-client-secret
string
header
required

Path Parameters

workspaceId
string<uuid>
required

UUID of the workspace. Must be your key's own workspace.

Example:

"cb363f7e-c52a-4478-911d-f6a6f791090e"

Body

application/json
title
string
required

Role title. Must be unique in the workspace.

Example:

"Shift Lead"

permissions
string<uuid>[]
required

Permission IDs from List Permissions.

Example:
description
string | null
Example:

"Runs the floor on a shift"

reportTo
string | null

ID of the role this role reports to.

Example:

"9a1e6b0f-3c2d-4e5f-8a7b-6c5d4e3f2a1b"

users
string<uuid>[] | null

User IDs to move onto the new role. Omit it or send [] to create the role with no users.

Example:
homepage
object

Landing screen for users with this role. When web is CUSTOM, dashboard is required.

Response

Role created.