API · v1 · stabil
CODEMETA OSDeveloper Center
DE
Konsole öffnen
Entity · dms_templates

DMS Template Schema

Schema-ID
dms_template
Collection
dms_templates
Permissions
  • Lesendms_template_view
  • Anlegendms_template_create
  • Änderndms_template_edit
  • Löschendms_template_delete

Felder

DMS Template Schema

dms_templates4 Permissions

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

namestringerforderlich

Template name

1–200 Zeichen
descriptionstringoptional
nullable
templateTypestringerforderlich

Type of document this template generates

INVOICEOFFERCONTRACTREPORTLETTERCUSTOM
enginestringerforderlich

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: []
namestringerforderlich
typestringerforderlich
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
typestringerforderlich
SIGNATUREINITIALSTEXTDATECHECKBOX
rolestringerforderlich
max 100 Zeichen
pageintegererforderlich
≥ 1
xnumbererforderlich
0 – 1
ynumbererforderlich
0 – 1
widthnumbererforderlich
0 – 1
heightnumbererforderlich
0 – 1
requiredbooleanoptional
Default: true
labelstringoptional
max 255 Zeichennullable
rolesobject[]optional

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

nullable
keystringerforderlich
1–100 Zeichen
labelstringerforderlich
1–200 Zeichen
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

Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:

  • GET /api/v1/dms_templates — Liste, paginiert + filterbar
  • GET /api/v1/dms_templates/<id> — Einzelne Entity
  • POST /api/v1/dms_templates — Anlegen
  • PATCH /api/v1/dms_templates/<id> — Teil-Update
  • DELETE /api/v1/dms_templates/<id> — Soft-Delete
  • GET /api/v1/dms_templates/<id>/timeline — Audit + Aktivitäten

Suche