# `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) ```json {} ``` ## Response `200` Updated label template ```json { "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`._