Files
dashback/docs/api/routes/labeltemplate/list.md
2026-09-30 19:29:13 +02:00

40 lines
801 B
Markdown

# `GET /labeltemplate`
Protected. Requires a valid session cookie (`credentials: 'include'`).
List label templates
Lists all ZPL label templates for the selected company. The `thumb` field is returned as a base64-encoded PNG string when present. `content.objects` is omitted to reduce payload size.
## Response `200`
List of label templates
```json
{
"labeltemplates": [
{
"id": 1,
"name": "…",
"width": 1,
"height": 1,
"dpi": 1,
"type": "…",
"content": {},
"thumb": "…"
}
]
}
```
## Errors
| Status | Description |
|--------|-------------|
| 400 | No company selected — `{"error":"…"}` |
| 401 | Unauthorized — `{"error":"…"}` |
---
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._