Skip to main content
PATCH
/
api
/
svc
/
v1
/
users
/
roles
Update User Roles
curl --request PATCH \
  --url https://{controlPlaneURL}/api/svc/v1/users/roles \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "<string>",
  "roles": [
    "<string>"
  ],
  "resourceType": "<string>"
}'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
email
string
required

Email of the user

roles
string[]
required

Role names for the user

resourceType
string

Resource Type

Response

The user roles have been successfully updated.

The response is of type object.