Path Parameters
UUID of the workspace (also known as hotel)
Response
Location levels fetched successfully.
The response is of type any.
curl --request GET \
--url https://api.xenia.team/api/v1/hotel/workspaces/{workspaceId}/location-levels \
--header 'x-client-key: <api-key>' \
--header 'x-client-secret: <api-key>'{
"data": [
{
"id": "d2518ebe-c546-4404-adb6-8598906ffd77",
"HotelId": "cb363f7e-c52a-4478-911d-f6a6f791090e",
"title": "Country",
"isSite": false,
"order": 1,
"CreatedBy": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"UpdatedBy": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"createdAt": "2024-08-08T10:04:42.957Z",
"updatedAt": "2024-10-28T15:21:33.023Z",
"deletedAt": null
},
{
"id": "98329f39-e263-484d-8fa7-e951fcddb9c1",
"HotelId": "cb363f7e-c52a-4478-911d-f6a6f791090e",
"title": "Store",
"isSite": true,
"order": 4,
"CreatedBy": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"UpdatedBy": "e25dd448-7ae7-4588-8767-7e1a316547e5",
"createdAt": "2024-09-01T15:47:51.538Z",
"updatedAt": "2025-04-16T14:16:41.328Z",
"deletedAt": null
}
],
"extra_meta": {
"message": ""
}
}Fetches all location levels associated with a specific workspace. These levels determine the hierarchy of physical locations.
curl --request GET \
--url https://api.xenia.team/api/v1/hotel/workspaces/{workspaceId}/location-levels \
--header 'x-client-key: <api-key>' \
--header 'x-client-secret: <api-key>'{
"data": [
{
"id": "d2518ebe-c546-4404-adb6-8598906ffd77",
"HotelId": "cb363f7e-c52a-4478-911d-f6a6f791090e",
"title": "Country",
"isSite": false,
"order": 1,
"CreatedBy": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"UpdatedBy": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"createdAt": "2024-08-08T10:04:42.957Z",
"updatedAt": "2024-10-28T15:21:33.023Z",
"deletedAt": null
},
{
"id": "98329f39-e263-484d-8fa7-e951fcddb9c1",
"HotelId": "cb363f7e-c52a-4478-911d-f6a6f791090e",
"title": "Store",
"isSite": true,
"order": 4,
"CreatedBy": "dfea8b8a-5b22-4668-b68d-dc641eb3a101",
"UpdatedBy": "e25dd448-7ae7-4588-8767-7e1a316547e5",
"createdAt": "2024-09-01T15:47:51.538Z",
"updatedAt": "2025-04-16T14:16:41.328Z",
"deletedAt": null
}
],
"extra_meta": {
"message": ""
}
}UUID of the workspace (also known as hotel)
Location levels fetched successfully.
The response is of type any.