Skip to main content
PUT
/
api
/
users
/
{id}
/
roles
Overwrite all roles assiged to a user with new list of roles
curl --request PUT \
  --url https://api.example.com/api/users/{id}/roles \
  --header 'Content-Type: application/json' \
  --data '
{
  "roles": [
    "admin",
    "consejero"
  ]
}
'

Path Parameters

id
string
required

User id (should be a UUID)

Body

application/json
roles
string[]

Response

OK