[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fbookings\u002Fwait-list":3,"docs-tabs-entities\u002Fbookings\u002Fwait-list":6},{"content":4,"lastmod":5},"# Move a booking to the wait list\n\n`POST \u002Fv1\u002Fbookings\u002F:id\u002Fwait-list`\n\nMoves a booking to the wait list: creates a wait list record with the booking's clients and deletes the booking itself, freeing up the resource's time slot.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|----------|\n| `id` (path) | number | yes | Booking identifier. List: [`GET \u002Fv1\u002Fbookings`](\u002Fdocs\u002Fentities\u002Fbookings\u002Flist) |\n\nNo request body is needed.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbookings\u002F49\u002Fwait-list\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbookings\u002F49\u002Fwait-list\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\"\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbookings\u002F49\u002Fwait-list', {\n  method: 'POST',\n  headers: { 'X-Api-Key': 'YOUR_API_KEY' },\n})\n\nconst { data } = await res.json()\nconsole.log('Wait list record ID:', data.id)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbookings\u002F49\u002Fwait-list', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { data } = await res.json()\nconsole.log('Wait list record ID:', data.id)\n```\n\n## Response fields\n\nOn success, the HTTP status is `201 Created` and the response contains the new wait list record.\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | `true` on success |\n| `data.id` | number | Identifier of the new wait list record. The record's clients are returned by [`GET \u002Fv1\u002Fbooking-wait-list\u002F:id\u002Fclients`](\u002Fdocs\u002Fentities\u002Fbooking-wait-list\u002Fclients) |\n| `data.note` | string \\| null | Note on the record. `null` — no note |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"id\": 33,\n    \"note\": \"Call back after 16:00\"\n  }\n}\n```\n\n## Error response example\n\n404 — there is no booking with this `id`, for example because it has already been moved to the wait list:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"Booking record not found\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 404 | `ENTITY_NOT_FOUND` | There is no booking with this `id`, including one already moved to the wait list. Message `Booking record not found` |\n| 400 | `INVALID_PARAMS` | `id` is not a positive integer. Message `id must be a canonical positive safe integer` |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is not passed |\n| 401 | `TOKEN_MISSING` | The key has no Bitrix24 tokens |\n| 403 | `SCOPE_DENIED` | The key does not have the `booking` scope |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key is in read-only mode |\n| 429 | `RATE_LIMITED` | Request rate exceeded. The effective cap is in the `x-ratelimit-limit` header |\n| 502 | `BITRIX_RESPONSE_INVALID` | Bitrix24 returned a response of an unexpected shape. If this happened while re-reading the record after the move, the booking has already been deleted and the wait list record created — find it in the [list of wait list records](\u002Fdocs\u002Fentities\u002Fbooking-wait-list\u002Flist) before retrying |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**The wait list record is created anew.** The new record has its own `id`. If the booking was created [from the wait list](\u002Fdocs\u002Fentities\u002Fbooking-wait-list\u002Fbooking), the new record gets the previous note.\n\n## See also\n\n- [Book from the wait list](\u002Fdocs\u002Fentities\u002Fbooking-wait-list\u002Fbooking)\n- [Booking wait list](\u002Fdocs\u002Fentities\u002Fbooking-wait-list)\n- [Get a booking](\u002Fdocs\u002Fentities\u002Fbookings\u002Fget)\n- [Booking clients](\u002Fdocs\u002Fentities\u002Fbookings\u002Fclients)\n- [Errors](\u002Fdocs\u002Ferrors)\n","2026-10-13",{},1795415182885]