Files
2026-10-11 18:55:06 +02:00

1.1 KiB

PATCH /attributename/{id}

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

Update attribute name

Updates name, sort, and/or exclusive flag for an attribute name.

Path parameters

Param Required Type Description
id yes integer

Body (JSON)

Field Required Type Description
name no string
sort no integer
exclusive no boolean
{
  "name": "…",
  "sort": 1,
  "exclusive": true
}

Signals

On success, emits SSE signal: attributename (see GET /events).

Response 200

Updated attribute name

{
  "attributename": {
    "id": 1,
    "name": "…",
    "sort": 1,
    "exclusive": true,
    "articleCount": 1,
    "values": [
      {
        "id": 1,
        "attributeId": 1,
        "value": "…",
        "sort": 1,
        "articleCount": 1
      }
    ]
  }
}

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