Locations
List rooms available for booking in a date range. Supports filtering by housekeeping status (clean/dirty/check/out_of_service), location type, and an ancestor scope. Out-of-order rooms are never returned.
Default Response
No content
GET /locations/{siteId}/availability?start=text HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
Default Response
No content
Find the tightest cluster of N available rooms — the deepest ancestor with at least N available descendants.
Default Response
No content
GET /locations/{siteId}/availability/cluster?start=text&count=1 HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
Default Response
No content
Hierarchical location tree for a site. When date filters are provided, each node is annotated with available_under and total_under counts so callers can show which branches contain availability.
Default Response
No content
GET /locations/{siteId}/tree HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
Default Response
No content
Get all locations for a site (nested children)
Default Response
No content
GET /locations/{siteId} HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
Default Response
No content
Create a new location
Default Response
No content
POST /locations/{siteId} HTTP/1.1
Host: api.kitehouse.co.uk
Content-Type: application/json
Accept: */*
Content-Length: 238
{
"name": "text",
"code": "text",
"type": "text",
"status": "text",
"parent_code": "text",
"parent_id": "text",
"erp_code": "text",
"description": "text",
"out_of_order_reason": "text",
"out_of_order_remarks": "text",
"through_date": "text",
"return_as": "text"
}Default Response
No content
List bookable locations (those whose type has can_be_allocated_to_bookings=true).
Default Response
No content
GET /locations/{siteId}/bookable HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
Default Response
No content
Delete a location
Default Response
No content
DELETE /locations/{siteId}/{locationId} HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
Default Response
No content
Update a location
Default Response
No content
PATCH /locations/{siteId}/{locationId} HTTP/1.1
Host: api.kitehouse.co.uk
Content-Type: application/json
Accept: */*
Content-Length: 238
{
"name": "text",
"code": "text",
"type": "text",
"status": "text",
"parent_code": "text",
"parent_id": "text",
"erp_code": "text",
"description": "text",
"out_of_order_reason": "text",
"out_of_order_remarks": "text",
"through_date": "text",
"return_as": "text"
}Default Response
No content
Apply a status (and optional OOO reason/remarks/through/return) to multiple locations at once.
Default Response
No content
POST /locations/{siteId}/bulk-status HTTP/1.1
Host: api.kitehouse.co.uk
Content-Type: application/json
Accept: */*
Content-Length: 141
{
"location_ids": [
"text"
],
"status": "text",
"out_of_order_reason": "text",
"out_of_order_remarks": "text",
"through_date": "text",
"return_as": "text"
}Default Response
No content
Delete multiple locations. Skips any that have children or active bookings.
Default Response
No content
DELETE /locations/{siteId}/bulk HTTP/1.1
Host: api.kitehouse.co.uk
Content-Type: application/json
Accept: */*
Content-Length: 25
{
"location_ids": [
"text"
]
}Default Response
No content
Export all locations for a site as CSV using the same columns as import (type is location type id).
Default Response
No content
GET /locations/{siteId}/export-csv HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
Default Response
No content
Import a list of locations.
Default Response
No content
POST /locations/{site}/import HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
Default Response
No content
List Out of Order / Out of Service events for a site, filtered by date.
Default Response
GET /locations/{siteId}/out-of-order-events HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
Default Response
[
{
"_id": "text",
"site": "text",
"location": {
"_id": "text",
"name": "text",
"code": "text"
},
"status": "text",
"reason": {
"_id": "text",
"code": "text",
"description": "text",
"type": "text"
},
"from_date": "text",
"through_date": "text",
"return_as": "text",
"remarks": "text",
"closed_at": "text",
"closed_to_status": "text",
"created_by": "text",
"closed_by": "text",
"created_at": "text",
"updated_at": "text"
}
]Update remarks / through_date / return_as on an out-of-order event (admin retrospective edit).
Default Response
PATCH /locations/{siteId}/out-of-order-events/{eventId} HTTP/1.1
Host: api.kitehouse.co.uk
Content-Type: application/json
Accept: */*
Content-Length: 59
{
"remarks": "text",
"through_date": "text",
"return_as": "text"
}Default Response
{
"_id": "text",
"site": "text",
"location": {
"_id": "text",
"name": "text",
"code": "text"
},
"status": "text",
"reason": {
"_id": "text",
"code": "text",
"description": "text",
"type": "text"
},
"from_date": "text",
"through_date": "text",
"return_as": "text",
"remarks": "text",
"closed_at": "text",
"closed_to_status": "text",
"created_by": "text",
"closed_by": "text",
"created_at": "text",
"updated_at": "text"
}Last updated
Was this helpful?

