> For the complete documentation index, see [llms.txt](https://kitehouse.co.uk/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kitehouse.co.uk/docs/api-reference/blockbookings.md).

# BlockBookings

## GET /block-bookings/{blockId}

> Retrieve a block booking with its member bookings (populated like the bookings list).

```json
{"openapi":"3.0.3","info":{"title":"Incident Tracker API","version":"1.0.0"},"servers":[{"url":"https://api.kitehouse.co.uk"}],"paths":{"/block-bookings/{blockId}":{"get":{"tags":["BlockBookings"],"description":"Retrieve a block booking with its member bookings (populated like the bookings list).","parameters":[{"schema":{"type":"string"},"in":"query","name":"site","required":true},{"schema":{"type":"string"},"in":"path","name":"blockId","required":true}],"responses":{"200":{"description":"Default Response"}}}}}}
```

## DELETE /block-bookings/{blockId}

> Archive a block booking (soft delete). Member bookings keep their block\_booking ref so historical grouping is preserved.

```json
{"openapi":"3.0.3","info":{"title":"Incident Tracker API","version":"1.0.0"},"servers":[{"url":"https://api.kitehouse.co.uk"}],"paths":{"/block-bookings/{blockId}":{"delete":{"tags":["BlockBookings"],"description":"Archive a block booking (soft delete). Member bookings keep their block_booking ref so historical grouping is preserved.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["site"],"properties":{"site":{"type":"string"}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"blockId","required":true}],"responses":{"200":{"description":"Default Response"}}}}}}
```

## PATCH /block-bookings/{blockId}

> Edit a block booking's name or notes.

```json
{"openapi":"3.0.3","info":{"title":"Incident Tracker API","version":"1.0.0"},"servers":[{"url":"https://api.kitehouse.co.uk"}],"paths":{"/block-bookings/{blockId}":{"patch":{"tags":["BlockBookings"],"description":"Edit a block booking's name or notes.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["site"],"properties":{"site":{"type":"string"},"name":{"type":"string","minLength":1},"notes":{"type":["string","null"]}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"blockId","required":true}],"responses":{"200":{"description":"Default Response"}}}}}}
```

## POST /block-bookings/{blockId}/transitions

> Apply the same transition to every member booking of the block. Returns per-member success/failure so the caller can show a partial-success summary.

```json
{"openapi":"3.0.3","info":{"title":"Incident Tracker API","version":"1.0.0"},"servers":[{"url":"https://api.kitehouse.co.uk"}],"paths":{"/block-bookings/{blockId}/transitions":{"post":{"tags":["BlockBookings"],"description":"Apply the same transition to every member booking of the block. Returns per-member success/failure so the caller can show a partial-success summary.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["site","type"],"properties":{"site":{"type":"string"},"type":{"type":"string","enum":["check_in","check_out","move_in","move_out","arrival","no_show","void","status_change"]},"occurred_at":{"type":"string"},"notes":{"type":"string"},"cancellation_code":{"type":"string"},"cancellation_reason":{"type":"string"}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"blockId","required":true}],"responses":{"200":{"description":"Default Response"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
