For the complete documentation index, see llms.txt. This page is also available as Markdown.

Locations

get

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.

Path parameters
siteIdstringRequired
Query parameters
startstringRequired
endstringOptional
include_occupiedbooleanOptional
typesstringOptional
statusesstringOptional
understringOptional
Responses
200

Default Response

No content

get/locations/{siteId}/availability
GET /locations/{siteId}/availability?start=text HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
200

Default Response

No content

get

Find the tightest cluster of N available rooms — the deepest ancestor with at least N available descendants.

Path parameters
siteIdstringRequired
Query parameters
startstringRequired
endstringOptional
countnumber · min: 1Required
include_occupiedbooleanOptional
typesstringOptional
statusesstringOptional
understringOptional
Responses
200

Default Response

No content

get/locations/{siteId}/availability/cluster
GET /locations/{siteId}/availability/cluster?start=text&count=1 HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
200

Default Response

No content

get

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.

Path parameters
siteIdstringRequired
Query parameters
startstringOptional
endstringOptional
include_occupiedbooleanOptional
typesstringOptional
statusesstringOptional
Responses
200

Default Response

No content

get/locations/{siteId}/tree
GET /locations/{siteId}/tree HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
200

Default Response

No content

get

Get all locations for a site (nested children)

Path parameters
siteIdstringRequired
Query parameters
with_occupantsbooleanOptional
with_typebooleanOptional
with_childrenbooleanOptional
with_active_bookingsbooleanOptional
Responses
200

Default Response

No content

get/locations/{siteId}
GET /locations/{siteId} HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
200

Default Response

No content

post

Create a new location

Path parameters
siteIdstringRequired
Body
namestringRequired
codestringRequired
typestringRequired
statusstringRequired
parent_codestringOptional
parent_idstring · nullableOptional
erp_codestringOptional
descriptionstringOptional
out_of_order_reasonstring · nullableOptional
out_of_order_remarksstring · nullableOptional
through_datestring · nullableOptional
return_asstring · nullableOptional
Responses
200

Default Response

No content

post/locations/{siteId}
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"
}
200

Default Response

No content

get

List bookable locations (those whose type has can_be_allocated_to_bookings=true).

Path parameters
siteIdstringRequired
Responses
200

Default Response

No content

get/locations/{siteId}/bookable
GET /locations/{siteId}/bookable HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
200

Default Response

No content

delete

Delete a location

Path parameters
siteIdstringRequired
locationIdstringRequired
Responses
200

Default Response

No content

delete/locations/{siteId}/{locationId}
DELETE /locations/{siteId}/{locationId} HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
200

Default Response

No content

patch

Update a location

Path parameters
siteIdstringRequired
locationIdstringRequired
Body
namestringRequired
codestringRequired
typestringRequired
statusstringOptional
parent_codestringOptional
parent_idstring · nullableOptional
erp_codestringOptional
descriptionstringOptional
out_of_order_reasonstring · nullableOptional
out_of_order_remarksstring · nullableOptional
through_datestring · nullableOptional
return_asstring · nullableOptional
Responses
200

Default Response

No content

patch/locations/{siteId}/{locationId}
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"
}
200

Default Response

No content

post

Apply a status (and optional OOO reason/remarks/through/return) to multiple locations at once.

Path parameters
siteIdstringRequired
Body
location_idsstring[] · min: 1Required
statusstringRequired
out_of_order_reasonstring · nullableOptional
out_of_order_remarksstring · nullableOptional
through_datestring · nullableOptional
return_asstring · nullableOptional
Responses
200

Default Response

No content

post/locations/{siteId}/bulk-status
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"
}
200

Default Response

No content

delete

Delete multiple locations. Skips any that have children or active bookings.

Path parameters
siteIdstringRequired
Body
location_idsstring[] · min: 1Required
Responses
200

Default Response

No content

delete/locations/{siteId}/bulk
DELETE /locations/{siteId}/bulk HTTP/1.1
Host: api.kitehouse.co.uk
Content-Type: application/json
Accept: */*
Content-Length: 25

{
  "location_ids": [
    "text"
  ]
}
200

Default Response

No content

get

Export all locations for a site as CSV using the same columns as import (type is location type id).

Path parameters
siteIdstringRequired
Responses
200

Default Response

No content

get/locations/{siteId}/export-csv
GET /locations/{siteId}/export-csv HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
200

Default Response

No content

post

Import a list of locations.

Path parameters
sitestringRequired
Responses
200

Default Response

No content

post/locations/{site}/import
POST /locations/{site}/import HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
200

Default Response

No content

get

List Out of Order / Out of Service events for a site, filtered by date.

Path parameters
siteIdstringRequired
Query parameters
for_datestringOptional
locationstringOptional
show_ooobooleanOptional
show_oosbooleanOptional
include_closedbooleanOptional
Responses
200

Default Response

application/json
_idstringOptional
sitestringOptional
statusstringOptional
from_datestringOptional
through_datestring · nullableOptional
return_asstring · nullableOptional
remarksstring · nullableOptional
closed_atstring · nullableOptional
closed_to_statusstring · nullableOptional
created_bystringOptional
closed_bystring · nullableOptional
created_atstringOptional
updated_atstringOptional
get/locations/{siteId}/out-of-order-events
GET /locations/{siteId}/out-of-order-events HTTP/1.1
Host: api.kitehouse.co.uk
Accept: */*
200

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"
  }
]
patch

Update remarks / through_date / return_as on an out-of-order event (admin retrospective edit).

Path parameters
siteIdstringRequired
eventIdstringRequired
Body
remarksstring · nullableOptional
through_datestring · nullableOptional
return_asstring · nullableOptional
Responses
200

Default Response

application/json
_idstringOptional
sitestringOptional
statusstringOptional
from_datestringOptional
through_datestring · nullableOptional
return_asstring · nullableOptional
remarksstring · nullableOptional
closed_atstring · nullableOptional
closed_to_statusstring · nullableOptional
created_bystringOptional
closed_bystring · nullableOptional
created_atstringOptional
updated_atstringOptional
patch/locations/{siteId}/out-of-order-events/{eventId}
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"
}
200

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?