[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fcatalog-skus\u002Fcreate":3,"docs-tabs-entities\u002Fcatalog-skus\u002Fcreate":6},{"content":4,"lastmod":5},"## Create an SKU\n\n`POST \u002Fv1\u002Fcatalog-skus`\n\nCreates a parent product in the product catalog — a shared card to which offers are then linked. Fields are passed flat at the root of the JSON.\n\n## Request fields (body)\n\n| Field | Type | Required | Description |\n|------|-----|:-----:|---------|\n| `name` | string | yes | Parent product name |\n| `iblockId` | number | yes | Product catalog ID. List: [`GET \u002Fv1\u002Fcatalogs`](\u002Fdocs\u002Fentities\u002Fcatalogs). An offer catalog — one with `productIblockId` filled in — is not accepted |\n| `active` | boolean | no | Whether the product is active. Defaults to `true` |\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. List: [`GET \u002Fv1\u002Fcatalog-sections`](\u002Fdocs\u002Fentities\u002Fcatalog-sections) |\n| `code` | string | no | Product symbolic code |\n| `xmlId` | string | no | External code. If omitted, Bitrix24 sets it to the product `id` as a string |\n| `sort` | number | no | Sort order. Defaults to `500` |\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`. Defaults to `text` |\n| `detailText` | string | no | Detailed description |\n| `detailTextType` | string | no | Detailed description format: `text` or `html`. Defaults to `text` |\n| `previewPicture` | object | no | Preview picture: `{ \"fileData\": [\"name.png\", \"\u003Cbase64>\"] }` |\n| `detailPicture` | object | no | Detail picture, same format |\n| `propertyNNN` | string | no | Catalog property value, where `NNN` is the property `id` from [`GET \u002Fv1\u002Fcatalog-product-properties`](\u002Fdocs\u002Fentities\u002Fcatalog-product-properties): `\"property301\": \"cotton\"` |\n\nThe `type`, `available`, and `bundle` fields are computed by Bitrix24 — in the request body they are rejected with `400 READONLY_FIELD`.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-skus\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"name\": \"Basic T-shirt\",\n    \"iblockId\": 25,\n    \"active\": true\n  }'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-skus\" \\\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\",\n    \"iblockId\": 25,\n    \"active\": true\n  }'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-skus', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    name: 'Basic T-shirt',\n    iblockId: 25,\n    active: true,\n  }),\n})\n\nconst { success, data } = await res.json()\nconsole.log('Parent product ID:', data.id)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-skus', {\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({\n    name: 'Basic T-shirt',\n    iblockId: 25,\n    active: true,\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 created parent product. The field set is the same as for [`GET \u002Fv1\u002Fcatalog-skus\u002F:id`](.\u002Fget.md) |\n\n## Response example\n\nThe main fields are shown; `propertyNNN` properties are omitted. A newly created parent product has `type` equal to `6`.\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\",\n    \"type\": 6,\n    \"active\": true,\n    \"available\": false,\n    \"bundle\": false,\n    \"code\": null,\n    \"xmlId\": \"7203\",\n    \"sort\": 500,\n    \"previewText\": null,\n    \"previewTextType\": \"text\",\n    \"detailText\": null,\n    \"detailTextType\": \"text\",\n    \"createdBy\": 1295,\n    \"modifiedBy\": 1295,\n    \"dateCreate\": \"2026-10-08T18:45:34.000Z\",\n    \"timestampX\": \"2026-10-08T18:45:34.000Z\"\n  }\n}\n```\n\n## Error response example\n\n400 — a required field was not passed:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"MISSING_REQUIRED_FIELDS\",\n    \"message\": \"Body field \\\"name\\\" is required to create catalogSku.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `MISSING_REQUIRED_FIELDS` | The required field `name` or `iblockId` was not passed — the message names it. The request is rejected before it reaches Bitrix24 |\n| 400 | `READONLY_FIELD` | A read-only field was passed in the body: `type`, `available`, `bundle` |\n| 422 | `BITRIX_ERROR` | `iblockId` points to an offer catalog (`productType is not allowed for this catalog`) |\n| 422 | `BITRIX_ERROR` | `iblockId` is not a catalog (`iblock is not catalog`) |\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**The type changes once an offer is linked.** A new parent product has `type: 6`. When the first offer is linked to it — [`POST \u002Fv1\u002Fcatalog-offers`](\u002Fdocs\u002Fentities\u002Fcatalog-offers\u002Fcreate) with `parentId` — the type becomes `3`. There is no need to change the type separately, and it cannot be passed.\n\n## See also\n\n- [List SKUs](\u002Fdocs\u002Fentities\u002Fcatalog-skus\u002Flist)\n- [Get an SKU](\u002Fdocs\u002Fentities\u002Fcatalog-skus\u002Fget)\n- [Update an SKU](\u002Fdocs\u002Fentities\u002Fcatalog-skus\u002Fupdate)\n- [Delete an SKU](\u002Fdocs\u002Fentities\u002Fcatalog-skus\u002Fdelete)\n- [Create an offer](\u002Fdocs\u002Fentities\u002Fcatalog-offers\u002Fcreate)\n- [Batch](\u002Fdocs\u002Fbatch)\n- [Limits and optimization](\u002Fdocs\u002Foptimization)\n","2026-10-09",{},1795415204162]