API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · dms_templates

DMS Template Schema

Schema ID
dms_template
Collection
dms_templates
Permissions
  • Readdms_template_view
  • Createdms_template_create
  • Editdms_template_edit
  • Deletedms_template_delete

Fields

DMS Template Schema

dms_templates4 permissions

Schema for validating DMS PDF generation templates (PDF-Vorlagen)

namestringrequired

Template name

1–200 characters
descriptionstringoptional
nullable
templateTypestringrequired

Type of document this template generates

INVOICEOFFERCONTRACTREPORTLETTERCUSTOM
enginestringrequired

HTML_PDF: Puppeteer + Handlebars. PDF_OVERLAY: hochgeladenes PDF mit platzierten Feldern (ersetzt sign_template).

HTML_PDFPDF_OVERLAY
Default: "HTML_PDF"
htmlTemplatestringoptional

Handlebars HTML template body

nullable
cssStylesstringoptional

CSS styles for the template

nullable
headerHtmlstringoptional

HTML for page header

nullable
footerHtmlstringoptional

HTML for page footer

nullable
variablesobject[]optional

Template variables with types

Default: []
namestringrequired
typestringrequired
stringnumberdatebooleanarrayobject
requiredbooleanoptional
Default: false
defaultValueanyoptional
descriptionstringoptional
nullable
orientationstringoptional
PORTRAITLANDSCAPE
Default: "PORTRAIT"
paperSizestringoptional
A4A3LETTERLEGAL
Default: "A4"
marginsobjectoptional
nullable
topstringoptional
nullable
rightstringoptional
nullable
bottomstringoptional
nullable
leftstringoptional
nullable
sampleDataobjectoptional

Sample JSON data for template preview

nullable
thumbnailS3Keystringoptional

S3 key for template preview thumbnail

nullable
contentModestringoptional

Fehlt = HTML. VISUAL = im Editor gebaut, HTML-Vorlagen bleiben unverändert

HTMLVISUALnull
nullable
editorJsonobjectoptional

TipTap-Stand im Modus VISUAL

nullable
basePdfDocumentIdstringoptional

PDF_OVERLAY: DMS-Dokument mit dem Grund-PDF

nullable
overlayFieldsobject[]optional

PDF_OVERLAY: platzierte Felder, Koordinaten 0..1

nullable
typestringrequired
SIGNATUREINITIALSTEXTDATECHECKBOX
rolestringrequired
max 100 characters
pageintegerrequired
≥ 1
xnumberrequired
0 – 1
ynumberrequired
0 – 1
widthnumberrequired
0 – 1
heightnumberrequired
0 – 1
requiredbooleanoptional
Default: true
labelstringoptional
max 255 charactersnullable
rolesobject[]optional

Wer füllt aus, wer unterschreibt, in welcher Reihenfolge

nullable
keystringrequired
1–100 characters
labelstringrequired
1–200 characters
orderintegeroptional
≥ 0Default: 0
defaultRuleobjectoptional
nullable
usableInstring[]optional

Wo die Vorlage nutzbar ist. Fehlt = überall, leer = nirgends (Muster ADR 0984)

nullable
documentTypeIdstringoptional

Dokumenttyp des Ergebnisses, zählt für Pflichtdokumente (ADR 0112/0349)

nullable
signingobjectoptional
nullable
verificationstringoptional
EMAIL_LINKEMAIL_OTP
expiryDaysintegeroptional
1 – 365nullable
reminderDaysintegeroptional
1 – 30nullable
isActivebooleanoptional
Default: true
sortOrdernumberoptional
Default: 0

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/dms_templates — List, paginated + filterable
  • GET /api/v1/dms_templates/<id> — Single entity
  • POST /api/v1/dms_templates — Create
  • PATCH /api/v1/dms_templates/<id> — Partial update
  • DELETE /api/v1/dms_templates/<id> — Soft delete
  • GET /api/v1/dms_templates/<id>/timeline — Audit + activities

Search