Skip to content

POST /print-template

Create Print Template

POST
/print-template

Create a new print template.

Inserts a PrintTemplate document containing the pdfme template definition
(basePdf, schemas, sampledata). Returns the new template's _key in the
response detail.

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.