Skip to content

Update user roles

Request

This endpoint updates roles assigned to a user.

Security
Bearer
Path
userIdstring, (uuid)required

Identifier of the user.

Example:1234a66b-7493-4f41-908c-58ba81093947
Bodyapplication/jsonrequired
rolesToAddArray of objects(RoleRefWithScope)

List of roles to be assigned to a principal.

Default:[]
rolesToDeleteArray of strings, (uuid)

List of roles to be removed for a principal.

Default:[]
curl -i -X PATCH \
  https://api-ext-sboxmeta.partners.spotnana.com/v3/users/1234a66b-7493-4f41-908c-58ba81093947/roles \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "rolesToAdd": [],
    "rolesToDelete": []
  }'

Responses

OK

Response
No content