[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fcatalog-skus\u002Fupdate":3,"docs-tabs-entities\u002Fcatalog-skus\u002Fupdate":6},{"content":4,"lastmod":5},"## Update an SKU\n\n`PATCH \u002Fv1\u002Fcatalog-skus\u002F:id`\n\nUpdates an existing parent product. Fields are passed flat at the root of the JSON. Pass only the fields you want to change — the rest keep their current values.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `id` (path) | number | yes | Parent product identifier. List: [`GET \u002Fv1\u002Fcatalog-skus`](.\u002Flist.md) |\n\n## Request fields (body)\n\n| Field | Type | Required | Description |\n|------|-----|:-----:|---------|\n| `name` | string | no | Parent product name |\n| `active` | boolean | no | Whether the product is active |\n| `iblockSectionId` | number | no | ID of the main catalog section. List: [`GET \u002Fv1\u002Fcatalog-sections`](\u002Fdocs\u002Fentities\u002Fcatalog-sections) |\n| `iblockSection` | number[] | no | Array of IDs of all sections the product is linked to. Replaces the previous set entirely |\n| `code` | string | no | Product symbolic code |\n| `xmlId` | string | no | External code |\n| `sort` | number | no | Sort order |\n| `dateActiveFrom` | datetime | no | Activity start date |\n| `dateActiveTo` | datetime | no | Activity end date |\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: `{ \"fileData\": [\"name.png\", \"\u003Cbase64>\"] }`. `{ \"remove\": \"Y\" }` deletes the picture |\n| `detailPicture` | object | no | Detail picture, same format |\n| `propertyNNN` | object | no | Catalog property value as an object `{ \"value\": … }`, where `NNN` is the property `id` from [`GET \u002Fv1\u002Fcatalog-product-properties`](\u002Fdocs\u002Fentities\u002Fcatalog-product-properties): `\"property301\": { \"value\": \"linen\" }` |\n\nFull list of fields — [`GET \u002Fv1\u002Fcatalog-skus\u002Ffields`](.\u002Ffields.md).\n\n**The body must contain at least one writable field.** An empty `PATCH` (`{}`) is rejected with `400 EMPTY_UPDATE_BODY`, and a `PATCH` without a single recognized writable field is rejected with `400 NO_RECOGNIZED_UPDATE_FIELDS`. The message of the second error lists the writable fields.\n\n`id` is passed in the path; it cannot be passed in the body. The `type`, `available`, `bundle`, `createdBy`, and `modifiedBy` fields are filled by Bitrix24, and `iblockId` is set only on create — writing any of them 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-skus\u002F7203\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"name\": \"Basic T-shirt, cotton\"\n  }'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X PATCH \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-skus\u002F7203\" \\\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\": \"Basic T-shirt, cotton\"\n  }'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-skus\u002F7203', {\n  method: 'PATCH',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    name: 'Basic T-shirt, cotton',\n  }),\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\u002Fcatalog-skus\u002F7203', {\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: 'Basic T-shirt, cotton',\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 parent product. The field set is the same as [`GET \u002Fv1\u002Fcatalog-skus\u002F:id`](.\u002Fget.md) |\n\n## Response example\n\nThe main fields are shown; `propertyNNN` properties are omitted.\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"id\": 7203,\n    \"iblockId\": 25,\n    \"iblockSectionId\": null,\n    \"iblockSection\": null,\n    \"name\": \"Basic T-shirt, cotton\",\n    \"type\": 3,\n    \"active\": true,\n    \"available\": true,\n    \"bundle\": false,\n    \"code\": null,\n    \"xmlId\": \"7203\",\n    \"sort\": 500,\n    \"createdBy\": 1295,\n    \"modifiedBy\": 1295,\n    \"dateCreate\": \"2026-10-08T18:45:34.000Z\",\n    \"timestampX\": \"2026-10-08T18:46:21.000Z\"\n  }\n}\n```\n\n## Error response example\n\n404 — no parent product with the specified `id` exists:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"sku does not exist.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 404 | `ENTITY_NOT_FOUND` | No product with the specified `id` exists (`sku does not exist.`) |\n| 404 | `ENTITY_NOT_FOUND` | The `id` belongs to a regular product (`catalogSku \u003Cid> not found`). The update is still written, see \"Known specifics\" |\n| 400 | `EMPTY_UPDATE_BODY` | The request body is empty — pass at least one field |\n| 400 | `NO_RECOGNIZED_UPDATE_FIELDS` | The body contains no recognized writable field. The message lists the writable fields |\n| 400 | `READONLY_FIELD` | A read-only field was passed in the body: `id`, `type`, `iblockId`, `available`, `bundle`, `createdBy`, `modifiedBy` |\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 is passed as an object.** A `PATCH` with a scalar property value returns `200` but does not write the value: a string property is cleared, and a checkbox keeps its previous value. Pass `{ \"value\": … }` — this changes both a string and a `\"Y\"`\u002F`\"N\"` checkbox.\n\n**The method does not check that the `id` belongs to a parent product.** With the `id` of a regular product, the call updates that product and returns `404 ENTITY_NOT_FOUND` with the message `catalogSku \u003Cid> not found` — here `404` does not mean the write failed. Check the record before updating: [`GET \u002Fv1\u002Fcatalog-skus\u002F:id`](.\u002Fget.md) returns `404 ENTITY_NOT_FOUND` for an `id` that does not belong to a parent product.\n\n## See also\n\n- [Create an SKU](\u002Fdocs\u002Fentities\u002Fcatalog-skus\u002Fcreate)\n- [List SKUs](\u002Fdocs\u002Fentities\u002Fcatalog-skus\u002Flist)\n- [Get an SKU](\u002Fdocs\u002Fentities\u002Fcatalog-skus\u002Fget)\n- [Delete an SKU](\u002Fdocs\u002Fentities\u002Fcatalog-skus\u002Fdelete)\n- [SKU fields](\u002Fdocs\u002Fentities\u002Fcatalog-skus\u002Ffields)\n- [Batch](\u002Fdocs\u002Fbatch)\n- [Limits and optimization](\u002Fdocs\u002Foptimization)\n","2026-10-09",{},1795415205099]