Skip to main content
POST
Error

Autorizações

Authorization
string
header
obrigatório

Bearer authentication. Send Authorization: Bearer .

Corpo

application/json

Role Input

RoleInput payload

displayName
string
obrigatório

Role's display name.

Exemplo:

"Custom Editor"

name
string
obrigatório

Role's unique identifier name.

Exemplo:

"custom-editor"

description
string

Role's description.

Exemplo:

"A custom editor role"

Resposta

Created

RoleResponse payload

createdAt
string
Exemplo:

"2026-06-24T10:00:00.000Z"

description
string
Exemplo:

"A custom editor role"

groups
string[]
id
string
Exemplo:

"custom-editor"

isEnabled
boolean
Exemplo:

true

isSystem
boolean

Whether the role is a platform-managed system role, immutable through this API. Never omitempty: false must travel so a consumer does not read a missing key as "not a system role".

Exemplo:

false

name
string
Exemplo:

"Custom Editor"

roles
string[]
users
string[]