1.3 KiB
1.3 KiB
PUT /article/{sku}/articlelist
Protected. Requires a valid session cookie (credentials: 'include').
Set Stückliste (bundle items) for an article
Configures the article as a Stückliste covering a list of count * article. A parent article cannot be a Stückliste. Can be combined with options. Pass an empty array to remove the Stückliste.
Path parameters
| Param | Required | Type | Description |
|---|---|---|---|
sku |
yes | string | Article SKU |
Body (JSON)
| Field | Required | Type | Description |
|---|---|---|---|
items |
yes | object[] | |
items[].articleId |
no | integer | |
items[].sku |
no | string | |
items[].count |
no | integer | |
items[].sort |
no | integer |
{
"items": [
{
"articleId": 1,
"sku": "…",
"count": 1,
"sort": 1
}
]
}
Response 200
Updated Stückliste items
{
"items": [
{
"id": 1,
"articleId": 1,
"sku": "…",
"name": "…",
"count": 1,
"sort": 1
}
]
}
Errors
| Status | Description |
|---|---|
| 400 | Article is a parent, has options, or contains itself |
| 404 | Article or component article not found |
Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.