Skip to main content
DELETE
/
api
/
v1
/
hotel
/
{HotelId}
/
roles
/
{id}
Delete Role with Reassignment
curl --request DELETE \
  --url http://sandbox.mintlify.com/api/v1/hotel/{HotelId}/roles/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-client-key: <api-key>' \
  --header 'x-client-secret: <api-key>' \
  --data '{
  "newRoleId": "a0bb13ef-7362-41b2-9947-a9146adb243d"
}'
{
  "data": 1,
  "meta": {}
}

Authorizations

x-client-key
string
header
required
x-client-secret
string
header
required

Path Parameters

HotelId
string<uuid>
required

ID of the hotel

id
string<uuid>
required

ID of the role to delete

Body

application/json
newRoleId
string<uuid>
required

Role ID to which existing users will be reassigned

Response

Role deleted and users reassigned

data
integer

Number of affected records

meta
object
I