> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.buqipi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a booking

> Updates operational fields: notes, arrival ETA, per-room ETA and guest first/last name. Dates, category, occupancy and payment state are not editable here; cancellation has its own endpoint.

`PATCH /bookings/{id}`

Updates operational fields: notes, arrival ETA, per-room ETA and guest first/last name. Dates, category, occupancy and payment state are not editable here; cancellation has its own endpoint.

## Authentication

Send the scoped API key as `Authorization: Bearer bqp_pk_...`. All requests use the base URL `https://api.buqipi.com/connect/v1`.

## Parameters

| Name | In | Type | Required | Description |
| - | - | - | - | - |
| `id` | path | string | yes | Buqipi booking identifier. |
| `Idempotency-Key` | header | string | no | Client-generated key for safe retries. Reusing it with a different body returns a conflict. |

## Body fields

| Field | Type | Required | Description |
| - | - | - | - |
| `notes` | string | no | |
| `eta` | string | no | |
| `rooms` | array of object | no | |
| `rooms.id` | string | yes | |
| `rooms.eta` | string | no | |
| `guest` | object | no | |
| `guest.first_name` | string | no | |
| `guest.last_name` | string | no | |

## Example request

```bash theme={null}
curl -X PATCH "https://api.buqipi.com/connect/v1/bookings/{id}" \
  -H "Authorization: Bearer $BUQIPI_API_KEY"
```

## Responses

| Status | Description |
| - | - |
| `200` | Booking updated. |
| `400` | The request is syntactically valid but cannot be processed. |
| `401` | Missing, invalid, expired or revoked API key. |
| `403` | The key is valid but lacks the required scope or property/category access. |
| `404` | The resource does not exist or is outside the key's scope. |
| `409` | The requested state change conflicts with the current booking, payment or inventory state. |
| `422` | One or more request fields are invalid. |
| `429` | The key or IP exceeded its quota. |
| `500` | An unexpected server error. Details are not exposed to the client. |

## Response fields (200)

| Field | Type | Required | Description |
| - | - | - | - |
| `data` | object | yes | |
| `data.id` | string | yes | |
| `data.external_ref` | string | no | |
| `data.booking_reference` | string | yes | |
| `data.status` | string enum: confirmed, pending\_payment, cancelled | yes | |
| `data.created_at` | string (date-time) | no | |
| `data.check_in` | string (date) | yes | |
| `data.check_out` | string (date) | yes | |
| `data.nights` | integer | no | |
| `data.currency` | string | yes | |
| `data.total` | number | yes | |
| `data.paid` | number | yes | |
| `data.pending` | number | yes | |
| `data.property_id` | string | no | |
| `data.category_ids` | array of string | no | |
| `data.guest` | object | no | |
| `data.notes` | string | no | |
| `data.rooms` | array of object | no | |
| `data.payments` | array of object | no | |
| `data.guest_portal_url` | string (uri) | no | |
| `meta` | object | yes | Response trace and pagination metadata. |
| `meta.api` | string enum: buqipi-connect | yes | |
| `meta.version` | string enum: v1 | yes | |
| `meta.request_id` | string (uuid) | yes | |
| `meta.generated_at` | string (date-time) | yes | |
| `meta.pagination` | object | no | |

## Specification

[View the full OpenAPI specification](https://api.pastes.dev/8OG3RS6RJx).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.