# Sections

## GET /sites/{siteId}/location-types

> Get all location types for a site

```json
{"openapi":"3.0.3","info":{"title":"Incident Tracker API","version":"1.0.0"},"servers":[{"url":"https://api.kitehouse.co.uk"}],"paths":{"/sites/{siteId}/location-types":{"get":{"tags":["Sections"],"description":"Get all location types for a site","parameters":[{"schema":{"type":"string"},"in":"path","name":"siteId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"name":{"type":"string"},"colour":{"type":"string"},"parent":{"type":"string"},"cleaning_type":{"type":"string","enum":["daily","weekly","monthly","routine","on_vacancy","on_zone_empty"]},"can_be_allocated_to_bookings":{"type":"boolean"}},"required":["_id","name","colour","can_be_allocated_to_bookings"]}}}}}}}}}}
```

## POST /sites/{siteId}/location-types

> Create a new location type for a site

```json
{"openapi":"3.0.3","info":{"title":"Incident Tracker API","version":"1.0.0"},"servers":[{"url":"https://api.kitehouse.co.uk"}],"paths":{"/sites/{siteId}/location-types":{"post":{"tags":["Sections"],"description":"Create a new location type for a site","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"colour":{"type":"string"},"parent":{"type":"string"},"cleaning_type":{"type":"string","enum":["daily","weekly","monthly","routine","on_vacancy","on_zone_empty",null],"nullable":true},"can_be_allocated_to_bookings":{"type":"boolean"}},"required":["name","colour","can_be_allocated_to_bookings"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"siteId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"_id":{"type":"string"},"name":{"type":"string"},"colour":{"type":"string"},"can_be_allocated_to_bookings":{"type":"boolean"}},"required":["_id","name","colour","can_be_allocated_to_bookings"]}}}}}}}}}
```

## DELETE /sites/{siteId}/location-types/{locationTypeId}

> Delete a location type for a site

```json
{"openapi":"3.0.3","info":{"title":"Incident Tracker API","version":"1.0.0"},"servers":[{"url":"https://api.kitehouse.co.uk"}],"paths":{"/sites/{siteId}/location-types/{locationTypeId}":{"delete":{"tags":["Sections"],"description":"Delete a location type for a site","parameters":[{"schema":{"type":"string"},"in":"path","name":"siteId","required":true},{"schema":{"type":"string"},"in":"path","name":"locationTypeId","required":true}],"responses":{"200":{"description":"Default Response"}}}}}}
```

## PATCH /sites/{siteId}/location-types/{locationTypeId}

> Update a location type for a site

```json
{"openapi":"3.0.3","info":{"title":"Incident Tracker API","version":"1.0.0"},"servers":[{"url":"https://api.kitehouse.co.uk"}],"paths":{"/sites/{siteId}/location-types/{locationTypeId}":{"patch":{"tags":["Sections"],"description":"Update a location type for a site","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"colour":{"type":"string"},"parent":{"type":"string"},"cleaning_type":{"type":"string","enum":["daily","weekly","monthly","routine","on_vacancy","on_zone_empty",null],"nullable":true},"can_be_allocated_to_bookings":{"type":"boolean"}},"required":["name","colour","can_be_allocated_to_bookings"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"siteId","required":true},{"schema":{"type":"string"},"in":"path","name":"locationTypeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"_id":{"type":"string"}}}}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kitehouse.co.uk/docs/api-reference/sections.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
