819 B
819 B
PUT /labeltemplate/{id}
Protected. Requires a valid session cookie (credentials: 'include').
Update label template
Replaces an existing label template.
When content (or width/height) is provided, the thumbnail is automatically re-rendered.
Path parameters
| Param | Required | Type | Description |
|---|---|---|---|
id |
yes | integer | Label template ID |
Body (JSON)
{}
Response 200
Updated label template
{
"labeltemplate": {}
}
Errors
| Status | Description |
|---|---|
| 400 | Invalid input — {"error":"…"} |
| 401 | Unauthorized — {"error":"…"} |
| 404 | Label template not found — {"error":"…"} |
Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.