# 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: 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/blockbookings.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.
