Files
dashback/docs/api/routes/attributename/_attributeId/value.post.md
2026-10-11 18:55:06 +02:00

810 B

POST /attributename/{attributeId}/value

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

Create value for an attribute

Adds a new predefined value to an attribute.

Path parameters

Param Required Type Description
attributeId yes integer

Body (JSON)

Field Required Type Description
value yes string
sort no integer
{
  "value": "…",
  "sort": 1
}

Response 201

Created attribute value

{
  "attributevalue": {
    "id": 1,
    "attributeId": 1,
    "value": "…",
    "sort": 1,
    "articleCount": 1
  }
}

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