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