[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fbooking-wait-list\u002Fupdate":3,"docs-tabs-entities\u002Fbooking-wait-list\u002Fupdate":6},{"content":4,"lastmod":5},"# Update an entry\n\n`PATCH \u002Fv1\u002Fbooking-wait-list\u002F:id`\n\nChanges the note of a wait list record. The wait list is the queue of clients for whom no free time slot was available to book.\n\nFields go at the root of the JSON, without a `fields` wrapper.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|----------|\n| `id` (path) | number | yes | Record identifier. List: [`GET \u002Fv1\u002Fbooking-wait-list`](\u002Fdocs\u002Fentities\u002Fbooking-wait-list\u002Flist) |\n\n## Request fields (body)\n\n| Field | Type | Required | Description |\n|------|-----|:-----:|----------|\n| `note` | string \\| null | no | New note. An empty string `\"\"` removes the note. `null` or omitting the field keeps the current note |\n\nThe body accepts no other fields. To change the record's clients, use [`PUT \u002Fv1\u002Fbooking-wait-list\u002F:id\u002Fclients`](\u002Fdocs\u002Fentities\u002Fbooking-wait-list\u002Fclients).\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X PATCH \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbooking-wait-list\u002F27\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"note\": \"Call back after 16:00\"}'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X PATCH \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbooking-wait-list\u002F27\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"note\": \"Call back after 16:00\"}'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbooking-wait-list\u002F27', {\n  method: 'PATCH',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({ note: 'Call back after 16:00' }),\n})\n\nconst { data } = await res.json()\nconsole.log(data.note)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbooking-wait-list\u002F27', {\n  method: 'PATCH',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({ note: 'Call back after 16:00' }),\n})\n\nconst { data } = await res.json()\nconsole.log(data.note)\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | `true` on success |\n| `data.id` | number | Record identifier |\n| `data.note` | string \\| null | Note after the update. `null` — no note |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"id\": 27,\n    \"note\": \"Call back after 16:00\"\n  }\n}\n```\n\n## Error response example\n\n404 — there is no record with this `id`:\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 record with this `id`. Message `Booking record not found` |\n| 400 | `INVALID_PARAMS` | The body contains a field other than `note`. Message `Only note can be written` |\n| 400 | `INVALID_PARAMS` | `note` is neither a string nor `null`. Message `note must be a string or null` |\n| 400 | `INVALID_PARAMS` | The body is not a JSON object, for example an array. Message `Body must be an object` |\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 did not confirm the update. Message `Bitrix24 did not confirm the booking operation` |\n| 502 | `BITRIX_RESPONSE_INVALID` | Bitrix24 returned the record in an unexpected shape when it was re-read after the update. The update is already saved — check the record with a [get request](\u002Fdocs\u002Fentities\u002Fbooking-wait-list\u002Fget) before retrying |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [Get a wait list record](\u002Fdocs\u002Fentities\u002Fbooking-wait-list\u002Fget)\n- [List wait list records](\u002Fdocs\u002Fentities\u002Fbooking-wait-list\u002Flist)\n- [Wait list clients](\u002Fdocs\u002Fentities\u002Fbooking-wait-list\u002Fclients)\n- [Errors](\u002Fdocs\u002Ferrors)\n","2026-10-13",{},1795000274679]