Skip to content

PUT /print-template

Update Print Template

PUT
/print-template

Replace a print template's definition.

Performs a full document update of the PrintTemplate identified by
template_data._key. All fields are replaced with the supplied values.

Emits: (direct transaction — no event class)

Required scope: quality:print-template:create

Authorizations

OAuth2PasswordBearer
password Flow
Token URL"/api/auth"
Scopes:
  • "admin"User can access and edit users and system settings
  • "library"User can access and edit products
  • "production"User can access and edit production plans
  • "operator"User can access the operator panel and make production declarations

Request Body

application/json
JSON
{
  
"_id": "string",
  
"_key": "string",
  
"_rev": "string",
  
"name": "Serial Label A6",
  
"description": "A6 label for finished goods with QR code and serial number",
  
"template": {
  
  
"basePdf": "string",
  
  
"sampledata": [
  
  
  
{
  
  
  
  
"additionalProperties": "string"
  
  
  
}
  
  
],
  
  
"schemas": [
  
  
  
[
  
  
  
]
  
  
],
  
  
"pdfmeVersion": "5.5.0"
  
},
  
"entities": 3
}

Responses

Successful Response

application/json
JSON
{
  
"status": 200,
  
"message": "string",
  
"detail": "string"
}

Samples

Powered by VitePress OpenAPI

Released under the Apache 2.0 License.