# 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"}}}}}}}}}}}
```
