cURL
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": {} }
ID of the hotel
ID of the role to delete
Role ID to which existing users will be reassigned
Role deleted and users reassigned
Number of affected records