Skip to main content
PATCH
Update 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"

roleId
string
required

ID of the role.

Example:

"4ccf0b65-fb99-40da-92d6-3f98730df8b2"

Body

application/json
title
string
required

Role title. Must be unique in the workspace. Required on every update, even when unchanged.

Example:

"Shift Lead"

permissions
string<uuid>[]
required

Permission IDs from List Permissions. Replaces the role's whole permission set.

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"

homepage
object

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

Response

Role updated. data is not returned.