[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fcatalog-services\u002Fupdate":3,"docs-tabs-entities\u002Fcatalog-services\u002Fupdate":6},{"content":4,"lastmod":5},"## Update a service\n\n`PATCH \u002Fv1\u002Fcatalog-services\u002F:id`\n\nUpdates an existing catalog service. Fields are passed flat at the root of the JSON; pass only the fields you change — the rest keep their current values.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `id` (path) | number | yes | Service identifier. List: [`GET \u002Fv1\u002Fcatalog-services`](.\u002Flist.md) |\n\n## Request fields (body)\n\nThe main writable fields are `name`, `active`, `available`, and `iblockSectionId`.\n\n| Field | Type | Required | Description |\n|------|-----|:-----:|---------|\n| `name` | string | no | Service name |\n| `active` | boolean | no | Whether the service is active |\n| `available` | boolean | no | Whether the service is available for purchase |\n| `iblockSectionId` | number | no | Main catalog section ID. List: [`GET \u002Fv1\u002Fcatalog-sections`](\u002Fdocs\u002Fentities\u002Fcatalog-sections\u002Flist) |\n| `iblockSection` | array | no | Array of IDs of all catalog sections the service belongs to. List: [`GET \u002Fv1\u002Fcatalog-sections`](\u002Fdocs\u002Fentities\u002Fcatalog-sections\u002Flist) |\n| `measure` | number | no | Unit of measure ID. List: [`GET \u002Fv1\u002Fcatalog-measures`](\u002Fdocs\u002Fentities\u002Fcatalog-measures\u002Flist) |\n| `vatIncluded` | boolean | no | Whether VAT is included in the price |\n| `vatId` | number | no | VAT rate ID. List: [`GET \u002Fv1\u002Fcatalog-vat-rates`](\u002Fdocs\u002Fentities\u002Fcatalog-vat-rates\u002Flist) |\n| `code` | string | no | Symbolic code |\n| `xmlId` | string | no | External code |\n| `sort` | number | no | Sort order |\n| `previewText` | string | no | Preview text |\n| `previewTextType` | string | no | Preview text format: `text` or `html` |\n| `detailText` | string | no | Detailed description |\n| `detailTextType` | string | no | Detailed description format: `text` or `html` |\n| `previewPicture` | object | no | Preview picture |\n| `detailPicture` | object | no | Detail picture |\n| `propertyNNN` | object | no | Catalog property value, where `NNN` is the property `id` from [`GET \u002Fv1\u002Fcatalog-product-properties`](\u002Fdocs\u002Fentities\u002Fcatalog-product-properties\u002Flist). Passed as an object: `\"property301\": { \"value\": \"A-300\" }` |\n\n**The body must contain at least one writable field.** An empty `PATCH` is rejected with `400 EMPTY_UPDATE_BODY`, and a body with only unknown field names is rejected with `400 NO_RECOGNIZED_UPDATE_FIELDS`.\n\nThe `iblockId` field is not accepted on update: the catalog is set on creation. Fields marked `readonly: true` in [Service fields](.\u002Ffields.md), for example `type` and `createdBy`, are filled in by the system. Any of these fields 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\u002Fcatalog-services\u002F7231\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"name\": \"Turnkey air conditioner installation\"\n  }'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X PATCH \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-services\u002F7231\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"name\": \"Turnkey air conditioner installation\"\n  }'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-services\u002F7231', {\n  method: 'PATCH',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    name: 'Turnkey air conditioner installation',\n  }),\n})\n\nconst { success, data } = await res.json()\nconsole.log('Name:', data.name)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-services\u002F7231', {\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({\n    name: 'Turnkey air conditioner installation',\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` | object | Full object of the updated service. The field set is the same as in [`GET \u002Fv1\u002Fcatalog-services\u002F:id`](.\u002Fget.md) |\n\n## Response example\n\nThe main fields are shown.\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"id\": 7231,\n    \"iblockId\": 25,\n    \"iblockSectionId\": 281,\n    \"iblockSection\": [281],\n    \"name\": \"Turnkey air conditioner installation\",\n    \"type\": 7,\n    \"active\": true,\n    \"available\": false,\n    \"xmlId\": \"7231\",\n    \"sort\": 500,\n    \"measure\": 9,\n    \"vatIncluded\": true,\n    \"dateCreate\": \"2026-10-08T20:50:59.000Z\",\n    \"timestampX\": \"2026-10-08T20:52:26.000Z\"\n  }\n}\n```\n\n## Error response example\n\n404 — no service with the specified `id` exists:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"service does not exist.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 404 | `ENTITY_NOT_FOUND` | No record with the specified `id` exists, or the record is not a service — for example, a regular catalog product (`service does not exist.`). The record is not changed |\n| 400 | `EMPTY_UPDATE_BODY` | The request body is empty — pass at least one field |\n| 400 | `NESTED_FIELDS_ENVELOPE` | The body contains an object under `fields` instead of root-level fields; the service is not updated |\n| 400 | `NO_RECOGNIZED_UPDATE_FIELDS` | The body contains no recognized writable field. The message lists the allowed ones |\n| 400 | `READONLY_FIELD` | The body contains a field that is not accepted on update: `iblockId` or a read-only field, for example `type` |\n| 403 | `SCOPE_DENIED` | The key lacks the `catalog` scope |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header was not passed |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**A catalog property changes only when passed as an object.** A `PATCH` with a string — `\"property301\": \"A-200\"` — or with `null` returns `200`, but the property value does not change. Pass the new value as an object `{ \"value\": \"...\" }`. When you create a service, a string property also accepts a plain string.\n\n**`iblockSectionId` replaces all of the service's sections.** If the service belongs to several sections, a `PATCH` with `iblockSectionId` leaves it only in the specified section — the `iblockSection` array in the response contains one ID. To keep several sections, pass them as a full array in `iblockSection`.\n\n**Unknown scalar field names next to known ones are ignored.** A body with `name` and an unknown scalar field name returns `200`: `name` is written, and the unknown name is dropped without a warning. An object under `fields` is rejected with `400 NESTED_FIELDS_ENVELOPE` before the update — send service fields at the JSON root.\n\n## See also\n\n- [Create a service](\u002Fdocs\u002Fentities\u002Fcatalog-services\u002Fcreate)\n- [List services](\u002Fdocs\u002Fentities\u002Fcatalog-services\u002Flist)\n- [Get a service](\u002Fdocs\u002Fentities\u002Fcatalog-services\u002Fget)\n- [Delete a service](\u002Fdocs\u002Fentities\u002Fcatalog-services\u002Fdelete)\n- [Service fields](\u002Fdocs\u002Fentities\u002Fcatalog-services\u002Ffields)\n- [Catalog product properties](\u002Fdocs\u002Fentities\u002Fcatalog-product-properties)\n- [Batch](\u002Fdocs\u002Fbatch)\n- [Limits and optimization](\u002Fdocs\u002Foptimization)\n","2026-10-15",{},1795415203519]