Saltar al contenido principal
POST
/
v1
/
people
/
roles
Create a role
curl --request POST \
  --url https://api.bold-factory.com/v1/people/roles \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "key": "<string>",
  "description": "<string>",
  "systemRole": true
}

Autorizaciones

Authorization
string
header
requerido

Use a valid JWT token in the Authorization header with the format 'Bearer {token}'

Cuerpo

application/json
name
string
requerido
description
string
requerido

Respuesta

Created

id
string
requerido
name
string
requerido
key
string
requerido
description
string
requerido
systemRole
boolean
requerido