Files
dashback/docs/api/routes/attributename/_id.delete.md
2026-10-09 19:02:15 +02:00

972 B

DELETE /attributename/{id}

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

Delete attribute name

Deletes an attribute name and cascades to attribute values and article assignments.

Path parameters

Param Required Type Description
id yes integer

Signals

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

Response 200

Deleted successfully

{
  "ok": true
}

Errors

Status Description
400 Bad request or no company selected — {"error":"…"}
401 Unauthorized — {"error":"…"}
403 Forbidden — {"error":"…"}
404 Attribute name not found — {"error":"…"}
409 Attribute name in use — {"error":"…"}
500 Server error — {"error":"…"}

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