Skip to main content
POST
/
api
/
users
/
v1
/
user
/
{userId}
/
roles
Set roles for a user
curl --request POST \
  --url https://api.example.com/api/users/v1/user/{userId}/roles \
  --header 'Content-Type: application/json' \
  --header 'X-Domino-Api-Key: <api-key>' \
  --data '
{
  "roles": [
    "<string>"
  ]
}
'
{
  "metadata": {
    "notices": [
      "<string>"
    ],
    "requestId": "<string>"
  },
  "roles": [
    "<string>"
  ]
}

Authorizations

X-Domino-Api-Key
string
header
required

Path Parameters

userId
string
required

Id of the User to set roles for

Body

application/json

The roles to assign to the user

roles
string[]
required

The complete list of roles to assign to the user. Any roles not listed will be revoked.

Response

Success

metadata
object
required
roles
string[]
required