API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · dms_templates

DMS Template Schema

Schema-ID
dms_template
Collection
dms_templates
Permissions
  • Lezendms_template_view
  • Aanmakendms_template_create
  • Wijzigendms_template_edit
  • Verwijderendms_template_delete

Velden

DMS Template Schema

dms_templates4 permissions

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

namestringvereist

Template name

1–200 tekens
descriptionstringoptioneel
nullable
templateTypestringvereist

Type of document this template generates

INVOICEOFFERCONTRACTREPORTLETTERCUSTOM
enginestringvereist

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

HTML_PDFPDF_OVERLAY
Default: "HTML_PDF"
htmlTemplatestringoptioneel

Handlebars HTML template body

nullable
cssStylesstringoptioneel

CSS styles for the template

nullable
headerHtmlstringoptioneel

HTML for page header

nullable
footerHtmlstringoptioneel

HTML for page footer

nullable
variablesobject[]optioneel

Template variables with types

Default: []
namestringvereist
typestringvereist
stringnumberdatebooleanarrayobject
requiredbooleanoptioneel
Default: false
defaultValueanyoptioneel
descriptionstringoptioneel
nullable
orientationstringoptioneel
PORTRAITLANDSCAPE
Default: "PORTRAIT"
paperSizestringoptioneel
A4A3LETTERLEGAL
Default: "A4"
marginsobjectoptioneel
nullable
topstringoptioneel
nullable
rightstringoptioneel
nullable
bottomstringoptioneel
nullable
leftstringoptioneel
nullable
sampleDataobjectoptioneel

Sample JSON data for template preview

nullable
thumbnailS3Keystringoptioneel

S3 key for template preview thumbnail

nullable
contentModestringoptioneel

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

HTMLVISUALnull
nullable
editorJsonobjectoptioneel

TipTap-Stand im Modus VISUAL

nullable
basePdfDocumentIdstringoptioneel

PDF_OVERLAY: DMS-Dokument mit dem Grund-PDF

nullable
overlayFieldsobject[]optioneel

PDF_OVERLAY: platzierte Felder, Koordinaten 0..1

nullable
typestringvereist
SIGNATUREINITIALSTEXTDATECHECKBOX
rolestringvereist
max. 100 tekens
pageintegervereist
≥ 1
xnumbervereist
0 – 1
ynumbervereist
0 – 1
widthnumbervereist
0 – 1
heightnumbervereist
0 – 1
requiredbooleanoptioneel
Default: true
labelstringoptioneel
max. 255 tekensnullable
rolesobject[]optioneel

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

nullable
keystringvereist
1–100 tekens
labelstringvereist
1–200 tekens
orderintegeroptioneel
≥ 0Default: 0
defaultRuleobjectoptioneel
nullable
usableInstring[]optioneel

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

nullable
documentTypeIdstringoptioneel

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

nullable
signingobjectoptioneel
nullable
verificationstringoptioneel
EMAIL_LINKEMAIL_OTP
expiryDaysintegeroptioneel
1 – 365nullable
reminderDaysintegeroptioneel
1 – 30nullable
isActivebooleanoptioneel
Default: true
sortOrdernumberoptioneel
Default: 0

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/dms_templates — Lijst, gepagineerd + filterbaar
  • GET /api/v1/dms_templates/<id> — Enkele entity
  • POST /api/v1/dms_templates — Aanmaken
  • PATCH /api/v1/dms_templates/<id> — Gedeeltelijke update
  • DELETE /api/v1/dms_templates/<id> — Soft-delete
  • GET /api/v1/dms_templates/<id>/timeline — Audit + activiteiten

Zoeken