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

36 lines
821 B
Markdown

# `DELETE /labeltemplate/{id}`
Protected. Requires a valid session cookie (`credentials: 'include'`).
Delete label template
Deletes a label template for the authenticated user's selected company.
## Path parameters
| Param | Required | Type | Description |
|-------|----------|------|-------------|
| `id` | yes | integer | Label template ID |
## Signals
On success, emits SSE signal: `labeltemplate` (see [`GET /events`](../events.md)).
## Response `204`
Label template deleted
_No content_
## Errors
| Status | Description |
|--------|-------------|
| 400 | Invalid ID or no company selected — `{"error":"…"}` |
| 401 | Unauthorized — `{"error":"…"}` |
| 404 | Label template not found — `{"error":"…"}` |
---
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._