Files
dashback/docs/api/routes/article/_sku/optionslist.put.md
2026-09-29 20:10:46 +02:00

1001 B

PUT /article/{sku}/optionslist

Protected. Requires a valid session cookie (credentials: 'include').

Set options list for an article

Configures options for an article. Some options can be mandated (come with the article in any case). An article that is a father or a Stückliste cannot have options. Pass an empty array to remove options.

Path parameters

Param Required Type Description
sku yes string Article SKU

Body (JSON)

{
  "options": [
    {
      "articleId": 1,
      "sku": "…",
      "count": 1,
      "sort": 1,
      "mandated": true
    }
  ]
}

Response 200

Updated options list

{
  "options": [
    {}
  ]
}

Errors

Status Description
400 Article is a father, a Stückliste, or contains itself
404 Article or option article not found

Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.