Skip to main content
PATCH
/
api
/
v1
/
mgt
/
workspaces
/
{workspaceId}
/
users
/
{userId}
/
role
/
{roleId}
Change User Role
curl --request PATCH \
  --url https://api.xenia.team/api/v1/mgt/workspaces/{workspaceId}/users/{userId}/role/{roleId} \
  --header 'x-client-key: <api-key>' \
  --header 'x-client-secret: <api-key>'
{
  "data": {
    "id": "a4f9e150-26ee-40f5-bbdd-a47232fef68a",
    "isAdmin": false
  },
  "extra_meta": {
    "message": "User's role updated!"
  }
}

Authorizations

x-client-key
string
header
required

Client API key for authentication

x-client-secret
string
header
required

Client secret for authentication

Path Parameters

workspaceId
string<uuid>
required

The ID of the workspace

userId
string<uuid>
required

The ID of the user whose role needs to be updated

roleId
string<uuid>
required

The ID of the new role to assign to the user

Response

User role updated successfully

data
object
extra_meta
object