Skip to main content
PUT

Autorizações

Authorization
string
header
obrigatório

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Parâmetros de caminho

organization_id
string
obrigatório

Identificador de organização.

Required string length: 24
Pattern: ^[0-9a-f]{24}$
role_id
string
obrigatório

Identificador de papel.

Required string length: 24
Pattern: ^[0-9a-f]{24}$

Corpo

application/json
name
string
obrigatório

Nome do papel do usuário.

Required string length: 1 - 120
permissions
object[]
obrigatório

Entradas completas de permissões que definem o estado final do papel.

Minimum array length: 1

Resposta

Papel atualizado com sucesso.

id
string
obrigatório

Identificador do papel.

Required string length: 24
Pattern: ^[0-9a-f]{24}$
name
string
obrigatório

Nome do papel.

organization_id
string
obrigatório

Identificador da organização associada a este papel.

Required string length: 24
Pattern: ^[0-9a-f]{24}$
created_at
string<date-time>
obrigatório

Carimbo de tempo de criação do papel em formato ISO 8601.

created_by
string | null
obrigatório

Identificador do usuário que criou o papel.

Required string length: 24
Pattern: ^[0-9a-f]{24}$
permissions
object[] | null

Entradas de permissões configuradas para este papel.