Skip to main content
PATCH
Update a custom role

Authorizations

X-API-Key
string
header
required

Organization API key. Format: "hp_live_{key}". Organization admins manage the key in the dashboard.

Path Parameters

roleId
string
required

Custom role ID (system presets cannot be edited)

Body

application/json
name
string

New role name

Required string length: 1 - 60
description
string

New description

Maximum string length: 300
permissions
object

Full replacement permission map

Example:

Response

Role updated

success
boolean
Example:

true

data
object