[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fcalendar-resources\u002Fupdate":3,"docs-tabs-entities\u002Fcalendar-resources\u002Fupdate":6},{"content":4,"lastmod":5},"\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","2026-10-13",{},1795376880537]