Skip to main content
PATCH
/
api
/
v1
/
hotel
/
hotels
/
{hotelId}
/
users
/
{userId}
/
roles
/
{roleId}
/
set
Update User Role
curl --request PATCH \
  --url https://api.xenia.team/api/v1/hotel/hotels/{hotelId}/users/{userId}/roles/{roleId}/set \
  --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
x-client-secret
string
header
required

Path Parameters

hotelId
string<uuid>
required

The ID of the workspace (internally named hotel).

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
I