Skip to main content
POST
/
api
/
users
/
{id}
/
roles
Assign roles to a user.
curl --request POST \
  --url https://api.example.com/api/users/{id}/roles \
  --header 'Content-Type: application/json' \
  --data '
{
  "roles": [
    "presidente",
    "asesor"
  ]
}
'

Path Parameters

id
string
required

User id (should be a UUID)

Body

application/json
roles
string[]

Response

CREATED