[{"data":1,"prerenderedAt":13},["ShallowReactive",2],{"docs-entities\u002Fcalendar-resources":3,"docs-tabs-entities\u002Fcalendar-resources":6},{"content":4,"lastmod":5},"# Calendar resources\n\nCalendar resources are named objects booked in the Bitrix24 calendar, such as a hall or a meeting room. Through the API you create, rename and delete resources and get their occupied intervals by ID.\n\nBitrix24 API: `calendar.resource.*`\nScope: `calendar`\n\n## Operations\n\n- [Create calendar resource](.\u002Fcalendar-resources\u002Fcreate.md) — `POST \u002Fv1\u002Fcalendar-resources`\n- [List calendar resources](.\u002Fcalendar-resources\u002Flist.md) — `GET \u002Fv1\u002Fcalendar-resources`\n- [Rename calendar resource](.\u002Fcalendar-resources\u002Fupdate.md) — `PATCH \u002Fv1\u002Fcalendar-resources\u002F:id`\n- [Delete calendar resource](.\u002Fcalendar-resources\u002Fdelete.md) — `DELETE \u002Fv1\u002Fcalendar-resources\u002F:id`\n- [Calendar resource fields](.\u002Fcalendar-resources\u002Ffields.md) — `GET \u002Fv1\u002Fcalendar-resources\u002Ffields`\n- [Resource bookings](.\u002Fcalendar-resources\u002Fbookings.md) — `GET \u002Fv1\u002Fcalendar-resources\u002Fbookings`\n\n## Key fields\n\n| Field | Description |\n|------|---------|\n| `id` | Resource ID. List: [`GET \u002Fv1\u002Fcalendar-resources`](.\u002Fcalendar-resources\u002Flist.md) |\n| `name` | Resource name — the only field that create and rename accept |\n| `createdBy` | ID of the employee who created the resource. List: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers) |\n\nFull field list — [`GET \u002Fv1\u002Fcalendar-resources\u002Ffields`](.\u002Fcalendar-resources\u002Ffields.md).\n\n## What to know before you start\n\n1. **There is no get-by-ID endpoint.** Find a resource in the [list](.\u002Fcalendar-resources\u002Flist.md): `GET \u002Fv1\u002Fcalendar-resources\u002F:id` returns `404 ROUTE_NOT_FOUND`. Create returns only `id`; rename returns the whole resource: `id`, `name`, `createdBy`.\n2. **The list cannot be filtered or sorted.** A request with `filter` is rejected with `400 UNSUPPORTED_FILTER`; a request with `order` or `sort` is rejected with `400 INVALID_SORT_FIELD`. Pick the resource you need by `name` on your side.\n3. **A calendar resource is not an online booking resource.** [Booking resources](\u002Fdocs\u002Fentities\u002Fbooking-resources) are a separate entity with their own IDs. The `resourceIds` parameter in [resource bookings](.\u002Fcalendar-resources\u002Fbookings.md) works only with IDs from the calendar resource list.\n4. **Batch covers only create and read.** `POST \u002Fv1\u002Fcalendar-resources\u002Fbatch` accepts the `list` and `create` actions. The `update` and `delete` actions are rejected with `400 ACTION_NOT_SUPPORTED` — rename and delete resources with separate calls.\n\n## Typical scenario\n\n1. Get the resources: [`GET \u002Fv1\u002Fcalendar-resources`](.\u002Fcalendar-resources\u002Flist.md).\n2. Check when they are busy over a period: [`GET \u002Fv1\u002Fcalendar-resources\u002Fbookings?resourceIds=57,59&from=2026-10-01&to=2026-11-01`](.\u002Fcalendar-resources\u002Fbookings.md).\n3. Add a new resource or rename an existing one: [`POST \u002Fv1\u002Fcalendar-resources`](.\u002Fcalendar-resources\u002Fcreate.md) \u002F [`PATCH \u002Fv1\u002Fcalendar-resources\u002F:id`](.\u002Fcalendar-resources\u002Fupdate.md).\n\n## Limits\n\n| Limit | Value |\n|-------|----------|\n| Records in the list per call | up to 5000 (`limit`), 50 by default |\n| List pagination | `offset` and `limit` set the window `[offset, offset + limit)` over the whole resource list |\n| Bookings | all intervals for the period come in one response, without pagination |\n| Batch calls | `list` and `create` in `POST \u002Fv1\u002Fcalendar-resources\u002Fbatch` |\n| Rate limit | shared across the Vibecode API — see [Limits and optimization](\u002Fdocs\u002Foptimization) |\n\n## See also\n\n- [Calendar events](\u002Fdocs\u002Fentities\u002Fcalendar-events)\n- [Calendar sections](\u002Fdocs\u002Fentities\u002Fcalendar-sections)\n- [Attendee availability](\u002Fdocs\u002Fcalendar\u002Faccessibility)\n- [Calendar](\u002Fdocs\u002Fcalendar)\n- [Entity API](\u002Fdocs\u002Fentity-api)\n","2026-10-13",{"calendar-resources\u002Fcreate.md":7,"calendar-resources\u002Flist.md":8,"calendar-resources\u002Fupdate.md":9,"calendar-resources\u002Fdelete.md":10,"calendar-resources\u002Ffields.md":11,"calendar-resources\u002Fbookings.md":12},"\n## Create calendar resource\n\n`POST \u002Fv1\u002Fcalendar-resources`\n\nCreates a calendar resource with the specified name.\n\nThe request body is flat — no `fields` wrapper.\n\n## Request fields (body)\n\n| Field | Type | Required | Description |\n|------|-----|:-----:|---------|\n| `name` | string | yes | Resource name |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"name\": \"Meeting room 2\"}'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"name\": \"Meeting room 2\"}'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({ name: 'Meeting room 2' }),\n})\n\nconst { success, data } = await res.json()\nconsole.log('Resource ID:', data.id)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources', {\n  method: 'POST',\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({ name: 'Meeting room 2' }),\n})\n\nconst { success, data } = await res.json()\n```\n\n## Response fields\n\nA successful creation returns HTTP status `201 Created`.\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data.id` | number | ID of the created resource. The resource name and creator are returned by [`GET \u002Fv1\u002Fcalendar-resources`](.\u002Flist.md) |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"id\": 285\n  }\n}\n```\n\n## Error response example\n\n400 — empty request body:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"EMPTY_CREATE_BODY\",\n    \"message\": \"Request body is empty — provide at least one field to create calendarResource.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `EMPTY_CREATE_BODY` | The request body is empty — pass `name` |\n| 400 | `READONLY_FIELD` | The body contains a read-only field — `id` or `createdBy` |\n| 422 | `BITRIX_ERROR` | `name` is an empty string. Message: the required parameter `name` is not set |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The API key is in read-only mode — writes are forbidden |\n| 403 | `SCOPE_DENIED` | The API key does not have the `calendar` scope |\n| 403 | `BITRIX_ACCESS_DENIED` | Bitrix24 denied the key owner permission to create the resource |\n| 401 | `TOKEN_MISSING` | The API key has no configured tokens |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header was not passed |\n| 429 | `RATE_LIMITED` | Rate limit exceeded |\n| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 is unavailable or returned a malformed response |\n| 503 | `BITRIX_TIMEOUT` | Bitrix24 did not respond in time |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**Several resources in one call.** `POST \u002Fv1\u002Fcalendar-resources\u002Fbatch` with the `create` action creates resources in a batch: `{\"action\": \"create\", \"items\": [{\"name\": \"Meeting room 2\"}]}`. The IDs of the created resources are returned in `data.results[].id`.\n\n## See also\n\n- [List calendar resources](.\u002Flist.md)\n- [Rename calendar resource](.\u002Fupdate.md)\n- [Delete calendar resource](.\u002Fdelete.md)\n- [Resource bookings](.\u002Fbookings.md)\n- [Calendar resources](\u002Fdocs\u002Fentities\u002Fcalendar-resources)\n","\n## List calendar resources\n\n`GET \u002Fv1\u002Fcalendar-resources`\n\nReturns the calendar resources of the Bitrix24 account — use it to find a resource ID for bookings, renaming and deletion.\n\n## Parameters\n\n| Parameter | Type | Default | Description |\n|----------|-----|-----------|---------|\n| `limit` (query) | number | `50` | Number of records, up to 5000 |\n| `offset` (query) | number | `0` | How many records to skip from the start of the list |\n| `select` (query) | string | — | Comma-separated response fields: `?select=id,name`. Field list — [`GET \u002Fv1\u002Fcalendar-resources\u002Ffields`](.\u002Ffields.md) |\n| `withTotal` (query) | boolean | — | Requests the total count. Has no effect: `meta.total` is always returned, including with `false` |\n\n**Pagination.** Vibecode fetches the whole resource list and returns the window `[offset, offset + limit)`. The maximum is 5000 records per call. `meta.total` is the total number of resources; `meta.hasMore` shows whether there are resources beyond the window.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources?limit=3\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources?limit=3\" \\\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\u002Fcalendar-resources?limit=3', {\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { success, data, meta } = await res.json()\nconsole.log(`Resources in the Bitrix24 account: ${meta.total}`)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources?limit=3', {\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { success, data, meta } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data` | array | Array of resources |\n| `data[].id` | number | Resource ID |\n| `data[].name` | string | Resource name |\n| `data[].createdBy` | number | ID of the employee who created the resource. List: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers) |\n| `meta.total` | number | Total number of resources in the Bitrix24 account |\n| `meta.hasMore` | boolean | Whether there are resources beyond the `limit` and `offset` window |\n| `meta.warnings` | array | Warnings about request parameters — objects `{ code, message, field }`. Returned, for example, for `limit=0` with code `LIMIT_ZERO_IGNORED` and for an unknown field in `select` with code `UNKNOWN_SELECT_FIELD` |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 7,\n      \"name\": \"Museum hall\",\n      \"createdBy\": 1\n    },\n    {\n      \"id\": 49,\n      \"name\": \"resource 1\",\n      \"createdBy\": 835\n    },\n    {\n      \"id\": 51,\n      \"name\": \"resource 2\",\n      \"createdBy\": 835\n    }\n  ],\n  \"meta\": {\n    \"total\": 9,\n    \"hasMore\": true\n  }\n}\n```\n\n## Error response example\n\n400 — a filter was passed:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"UNSUPPORTED_FILTER\",\n    \"message\": \"calendar-resources list does not support filter[]; B24 method \\\"calendar.resource.list\\\" takes no list parameters at all. Filter keys received: name. Filter it on your side.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `UNSUPPORTED_FILTER` | `filter` was passed. The list does not support filtering — filter resources on your side |\n| 400 | `INVALID_SORT_FIELD` | `order` or `sort` was passed. The list does not support sorting |\n| 403 | `SCOPE_DENIED` | The API key does not have the `calendar` scope |\n| 403 | `BITRIX_ACCESS_DENIED` | Bitrix24 denied the key owner access to calendar resources |\n| 401 | `TOKEN_MISSING` | The API key has no configured tokens |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is missing |\n| 429 | `RATE_LIMITED` | Request limit exceeded |\n| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 is unavailable or returned a malformed response |\n| 503 | `BITRIX_TIMEOUT` | Bitrix24 did not respond in time |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**A single resource is available only through the list.** There is no endpoint for reading a single resource: `GET \u002Fv1\u002Fcalendar-resources\u002F:id` returns `404 ROUTE_NOT_FOUND`. Find the resource you need in this list by `id` or `name`.\n\n**`id` is returned with any `select`.** A request with an unknown name in `select` is not rejected — the response still contains the `id` of each resource.\n\n## See also\n\n- [Create calendar resource](.\u002Fcreate.md)\n- [Resource bookings](.\u002Fbookings.md)\n- [Calendar resource fields](.\u002Ffields.md)\n- [Calendar resources](\u002Fdocs\u002Fentities\u002Fcalendar-resources)\n- [Limits and optimization](\u002Fdocs\u002Foptimization)\n","\n## Rename calendar resource\n\n`PATCH \u002Fv1\u002Fcalendar-resources\u002F:id`\n\nChanges the name of a calendar resource.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `id` (path) | number | yes | Resource ID. List: [`GET \u002Fv1\u002Fcalendar-resources`](.\u002Flist.md) |\n\n## Request fields (body)\n\n| Field | Type | Required | Description |\n|------|-----|:-----:|---------|\n| `name` | string | yes | New resource name. Any other field in the body is rejected with `400 READONLY_FIELD` |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X PATCH \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources\u002F285\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"name\": \"Meeting room 2, third floor\"}'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X PATCH \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources\u002F285\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"name\": \"Meeting room 2, third floor\"}'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources\u002F285', {\n  method: 'PATCH',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({ name: 'Meeting room 2, third floor' }),\n})\n\nconst { success, data } = await res.json()\nconsole.log('New name:', data.name)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources\u002F285', {\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({ name: 'Meeting room 2, third floor' }),\n})\n\nconst { success, data } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data` | object | The resource after the change. Its fields are the `data.*` rows below |\n| `data.id` | number | Resource ID |\n| `data.name` | string | Resource name after the change |\n| `data.createdBy` | number | ID of the employee who created the resource. List: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers) |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"id\": 285,\n    \"name\": \"Meeting room 2, third floor\",\n    \"createdBy\": 1295\n  }\n}\n```\n\n## Error response example\n\n404 — no resource with this ID:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"Calendar record not found\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `MISSING_REQUIRED_FIELDS` | `name` is not passed or is an empty string |\n| 400 | `READONLY_FIELD` | The body contains fields other than `name` |\n| 400 | `INVALID_PARAMS` | `id` is not a positive integer |\n| 404 | `ENTITY_NOT_FOUND` | No resource with this `id` in the resource list |\n| 422 | `BITRIX_ERROR` | Bitrix24 did not confirm the rename or did not save the new name |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The API key is in read-only mode — writes are forbidden |\n| 403 | `SCOPE_DENIED` | The API key does not have the `calendar` scope |\n| 403 | `BITRIX_ACCESS_DENIED` | Bitrix24 denied the key owner permission to change the resource |\n| 401 | `TOKEN_MISSING` | The API key has no configured tokens |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header was not passed |\n| 429 | `RATE_LIMITED` | Rate limit exceeded |\n| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 is unavailable or returned a malformed resource list |\n| 503 | `BITRIX_TIMEOUT` | Bitrix24 did not respond in time |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**No batch rename.** `POST \u002Fv1\u002Fcalendar-resources\u002Fbatch` with the `update` action is rejected with `400 ACTION_NOT_SUPPORTED`. Rename each resource with a separate call to this method.\n\n## See also\n\n- [List calendar resources](.\u002Flist.md)\n- [Create calendar resource](.\u002Fcreate.md)\n- [Delete calendar resource](.\u002Fdelete.md)\n- [Calendar resources](\u002Fdocs\u002Fentities\u002Fcalendar-resources)\n","\n## Delete calendar resource\n\n`DELETE \u002Fv1\u002Fcalendar-resources\u002F:id`\n\nDeletes a calendar resource by ID. A deleted resource cannot be restored through the API — create a new one if needed.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `id` (path) | number | yes | Resource ID. List: [`GET \u002Fv1\u002Fcalendar-resources`](.\u002Flist.md) |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources\u002F285\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources\u002F285\" \\\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\u002Fcalendar-resources\u002F285', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { success, data } = await res.json()\nif (success && data.deleted) {\n  console.log('Resource deleted:', data.id)\n}\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources\u002F285', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { success, data } = await res.json()\n```\n\n## Response fields\n\nA successful deletion returns HTTP status `200 OK` with a body.\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data.id` | number | ID of the deleted resource |\n| `data.deleted` | boolean | `true` — the resource is deleted |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"id\": 285,\n    \"deleted\": true\n  }\n}\n```\n\n## Error response example\n\n404 — no resource with this ID:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"Calendar record not found\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `INVALID_PARAMS` | `id` is not a positive integer |\n| 400 | `FST_ERR_CTP_EMPTY_JSON_BODY` | The `Content-Type: application\u002Fjson` header is sent without a body. Send `DELETE` without this header |\n| 404 | `ENTITY_NOT_FOUND` | No resource with this `id` exists in the resource list, including when the same `id` is deleted again |\n| 422 | `BITRIX_ERROR` | Bitrix24 did not confirm the deletion |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The API key is in read-only mode — writes are forbidden |\n| 403 | `SCOPE_DENIED` | The API key does not have the `calendar` scope |\n| 403 | `BITRIX_ACCESS_DENIED` | Bitrix24 denied the key owner permission to delete the resource |\n| 401 | `TOKEN_MISSING` | The API key has no configured tokens |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header was not passed |\n| 429 | `RATE_LIMITED` | Rate limit exceeded |\n| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 is unavailable or returned a malformed resource list |\n| 503 | `BITRIX_TIMEOUT` | Bitrix24 did not respond in time |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**No batch deletion.** `POST \u002Fv1\u002Fcalendar-resources\u002Fbatch` with the `delete` action is rejected with `400 ACTION_NOT_SUPPORTED`. Delete each resource with a separate call to this method.\n\n## See also\n\n- [List calendar resources](.\u002Flist.md)\n- [Create calendar resource](.\u002Fcreate.md)\n- [Resource bookings](.\u002Fbookings.md)\n- [Calendar resources](\u002Fdocs\u002Fentities\u002Fcalendar-resources)\n","\n## Calendar resource fields\n\n`GET \u002Fv1\u002Fcalendar-resources\u002Ffields`\n\nReturns the calendar resource field schema — use it to check which fields the create and rename requests accept.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources\u002Ffields\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources\u002Ffields\" \\\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\u002Fcalendar-resources\u002Ffields', {\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { success, data } = await res.json()\nconsole.log(Object.keys(data.fields))\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources\u002Ffields', {\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { success, data } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data.fields` | object | Field schema: the key is the resource field name, the value is its description |\n| `data.fields.\u003Cfield>.type` | string | Value type: `number` or `string` |\n| `data.fields.\u003Cfield>.readonly` | boolean | `true` — the field is read-only and is not accepted in write requests |\n| `data.fields.\u003Cfield>.required` | boolean | `true` — the field is required on creation. Present only on required fields |\n| `data.fields.\u003Cfield>.label` | string | Field label |\n| `data.fields.\u003Cfield>.description` | string | Field description |\n| `data.batch` | array | Write actions accepted by `POST \u002Fv1\u002Fcalendar-resources\u002Fbatch`: `create` |\n\nResource fields in `data.fields`:\n\n| Field | Type | RO | Description |\n|------|-----|:--:|---------|\n| `id` | number | yes | Resource ID |\n| `name` | string | no | Resource name. Required on creation and renaming |\n| `createdBy` | number | yes | ID of the employee who created the resource. List: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers) |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"fields\": {\n      \"id\": {\n        \"type\": \"number\",\n        \"readonly\": true,\n        \"label\": \"Resource ID\",\n        \"description\": \"Resource ID.\"\n      },\n      \"name\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"required\": true,\n        \"label\": \"Resource name\",\n        \"description\": \"Resource name.\"\n      },\n      \"createdBy\": {\n        \"type\": \"number\",\n        \"readonly\": true,\n        \"label\": \"Creator ID\",\n        \"description\": \"Creator ID.\"\n      }\n    },\n    \"batch\": [\n      \"create\"\n    ]\n  }\n}\n```\n\n## Error response example\n\n403 — no scope:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"SCOPE_DENIED\",\n    \"message\": \"This endpoint requires 'calendar' scope\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 403 | `SCOPE_DENIED` | The API key does not have the `calendar` scope |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header was not passed |\n| 429 | `RATE_LIMITED` | Rate limit exceeded |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [List calendar resources](.\u002Flist.md)\n- [Create calendar resource](.\u002Fcreate.md)\n- [Rename calendar resource](.\u002Fupdate.md)\n- [Calendar resources](\u002Fdocs\u002Fentities\u002Fcalendar-resources)\n","\n## Resource bookings\n\n`GET \u002Fv1\u002Fcalendar-resources\u002Fbookings`\n\nReturns the occupied intervals of calendar resources for a period — when each resource is occupied and by which booking.\n\n## Parameters\n\n| Parameter | Type | Required | Default | Description |\n|----------|-----|:-----:|-----------|---------|\n| `resourceIds` (query) | string | Yes | — | Comma-separated calendar resource IDs: `?resourceIds=57,59`. List: [`GET \u002Fv1\u002Fcalendar-resources`](.\u002Flist.md) |\n| `from` (query) | string | No | — | Period start — a date such as `2026-10-01`, or an ISO 8601 date with time. Without `from` and `to`, the period runs from 30 days before the current date to 90 days after it. If only `to` is passed, the period has no start limit |\n| `to` (query) | string | No | — | Period end in the same format. If only `from` is passed, the period has no end limit |\n\nThe generic `filter` parameter is not applied by this endpoint. By default, the API preserves the previous HTTP 200 response and data, adds `Warning: 299 - \"filter is not supported on this endpoint and was ignored\"`, and records unsupported-filter use in the server log.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources\u002Fbookings?resourceIds=59&from=2025-01-21&to=2025-01-22\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources\u002Fbookings?resourceIds=59&from=2025-01-21&to=2025-01-22\" \\\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 params = new URLSearchParams({ resourceIds: '59', from: '2025-01-21', to: '2025-01-22' })\nconst res = await fetch(`https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources\u002Fbookings?${params}`, {\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { success, data } = await res.json()\nfor (const slot of data) console.log(slot.resourceId, slot.from, slot.to)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst params = new URLSearchParams({ resourceIds: '59', from: '2025-01-21', to: '2025-01-22' })\nconst res = await fetch(`https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcalendar-resources\u002Fbookings?${params}`, {\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { success, data } = await res.json()\n```\n\n## Response fields\n\n`from` and `to` are returned for every interval; the other fields may be absent.\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data` | array | Occupied resource intervals |\n| `data[].id` | number | ID of the calendar event that occupies the resource |\n| `data[].name` | string | Event name |\n| `data[].resourceId` | number | Resource ID from `resourceIds` |\n| `data[].bookingId` | number \\| null | Resource booking ID |\n| `data[].from` | string | Interval start: ISO 8601 date and time with an offset. For an all-day interval — a date without time |\n| `data[].to` | string | Interval end in the same format. For an all-day interval — the last day, inclusive |\n| `data[].timezoneFrom` | string | Start time zone, for example `UTC`. Not returned for an all-day interval |\n| `data[].timezoneTo` | string | End time zone. Not returned for an all-day interval |\n| `data[].skipTime` | boolean | `true` — an all-day interval |\n| `data[].accessibility` | string | Availability status in the event, for example `busy` |\n| `data[].importance` | string | Event importance, for example `normal` |\n| `data[].eventType` | string | Event type. For a resource booking — `#resourcebooking#` |\n| `meta.total` | number | Number of intervals in the response |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": [\n    {\n      \"from\": \"2025-01-21T09:30:00+00:00\",\n      \"to\": \"2025-01-21T10:30:00+00:00\",\n      \"id\": 7667,\n      \"name\": \"Booking: client meeting\",\n      \"resourceId\": 59,\n      \"bookingId\": 159,\n      \"accessibility\": \"busy\",\n      \"importance\": \"normal\",\n      \"eventType\": \"#resourcebooking#\",\n      \"timezoneFrom\": \"UTC\",\n      \"timezoneTo\": \"UTC\",\n      \"skipTime\": false\n    },\n    {\n      \"from\": \"2025-01-21T11:00:00+00:00\",\n      \"to\": \"2025-01-21T12:00:00+00:00\",\n      \"id\": 7707,\n      \"name\": \"Booking: product presentation\",\n      \"resourceId\": 59,\n      \"bookingId\": 167,\n      \"accessibility\": \"busy\",\n      \"importance\": \"normal\",\n      \"eventType\": \"#resourcebooking#\",\n      \"timezoneFrom\": \"UTC\",\n      \"timezoneTo\": \"UTC\",\n      \"skipTime\": false\n    }\n  ],\n  \"meta\": {\n    \"total\": 2\n  }\n}\n```\n\nAn all-day interval has dates without time and no `timezoneFrom` or `timezoneTo`:\n\n```json\n{\n  \"from\": \"2024-04-14\",\n  \"to\": \"2024-04-16\",\n  \"id\": 7389,\n  \"name\": \"Booking: lead\",\n  \"resourceId\": 59,\n  \"bookingId\": 155,\n  \"accessibility\": \"busy\",\n  \"importance\": \"normal\",\n  \"eventType\": \"#resourcebooking#\",\n  \"skipTime\": true\n}\n```\n\n## Error response example\n\n400 — `resourceIds` is missing:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"MISSING_REQUIRED_FIELDS\",\n    \"message\": \"resourceIds must be a comma-separated list of positive safe integers\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 200 | `Warning: 299` | The filter is ignored by default; previous data is preserved and the warning is sent in the `Warning` header. |\n| 400 (strict mode only) | `UNSUPPORTED_FILTER` | The server mode is disabled by default; until it is enabled, the endpoint preserves HTTP 200 and the previous data. |\n| 400 | `MISSING_REQUIRED_FIELDS` | `resourceIds` is missing or contains anything other than comma-separated positive integers |\n| 400 | `INVALID_PARAMS` | `from` or `to` is not an ISO 8601 date |\n| 403 | `SCOPE_DENIED` | The API key does not have the `calendar` scope |\n| 403 | `BITRIX_ACCESS_DENIED` | Bitrix24 denied the key owner access to bookings |\n| 401 | `TOKEN_MISSING` | The API key has no configured tokens |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is missing |\n| 429 | `RATE_LIMITED` | Request limit exceeded |\n| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 is unavailable, returned bookings in an invalid shape, or returned an interval without a date and time zone |\n| 503 | `BITRIX_TIMEOUT` | Bitrix24 did not respond in time |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**A non-existent resource does not cause an error.** An ID that is not in the resource list returns an empty `data` with `200` — the same as a resource with no bookings. Check IDs against [`GET \u002Fv1\u002Fcalendar-resources`](.\u002Flist.md); otherwise a typo in an ID reads as \"the resource is free\".\n\n**All intervals in one response.** There is no pagination: the method returns all intervals for the period. To shorten the response, narrow the period with `from` and `to`.\n\n## See also\n\n- [List calendar resources](.\u002Flist.md)\n- [Calendar resources](\u002Fdocs\u002Fentities\u002Fcalendar-resources)\n- [Calendar events](\u002Fdocs\u002Fentities\u002Fcalendar-events)\n- [Attendee availability](\u002Fdocs\u002Fcalendar\u002Faccessibility)\n",1795527725483]