API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · dms_templates

DMS Template Schema

ID du schéma
dms_template
Collection
dms_templates
Autorisations
  • Liredms_template_view
  • Créerdms_template_create
  • Modifierdms_template_edit
  • Supprimerdms_template_delete

Champs

DMS Template Schema

dms_templates4 autorisations

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

namestringobligatoire

Template name

1–200 caractères
descriptionstringfacultatif
nullable
templateTypestringobligatoire

Type of document this template generates

INVOICEOFFERCONTRACTREPORTLETTERCUSTOM
enginestringobligatoire

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

HTML_PDFPDF_OVERLAY
Par défaut : "HTML_PDF"
htmlTemplatestringfacultatif

Handlebars HTML template body

nullable
cssStylesstringfacultatif

CSS styles for the template

nullable
headerHtmlstringfacultatif

HTML for page header

nullable
footerHtmlstringfacultatif

HTML for page footer

nullable
variablesobject[]facultatif

Template variables with types

Par défaut : []
namestringobligatoire
typestringobligatoire
stringnumberdatebooleanarrayobject
requiredbooleanfacultatif
Par défaut : false
defaultValueanyfacultatif
descriptionstringfacultatif
nullable
orientationstringfacultatif
PORTRAITLANDSCAPE
Par défaut : "PORTRAIT"
paperSizestringfacultatif
A4A3LETTERLEGAL
Par défaut : "A4"
marginsobjectfacultatif
nullable
topstringfacultatif
nullable
rightstringfacultatif
nullable
bottomstringfacultatif
nullable
leftstringfacultatif
nullable
sampleDataobjectfacultatif

Sample JSON data for template preview

nullable
thumbnailS3Keystringfacultatif

S3 key for template preview thumbnail

nullable
contentModestringfacultatif

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

HTMLVISUALnull
nullable
editorJsonobjectfacultatif

TipTap-Stand im Modus VISUAL

nullable
basePdfDocumentIdstringfacultatif

PDF_OVERLAY: DMS-Dokument mit dem Grund-PDF

nullable
overlayFieldsobject[]facultatif

PDF_OVERLAY: platzierte Felder, Koordinaten 0..1

nullable
typestringobligatoire
SIGNATUREINITIALSTEXTDATECHECKBOX
rolestringobligatoire
max. 100 caractères
pageintegerobligatoire
≥ 1
xnumberobligatoire
0 – 1
ynumberobligatoire
0 – 1
widthnumberobligatoire
0 – 1
heightnumberobligatoire
0 – 1
requiredbooleanfacultatif
Par défaut : true
labelstringfacultatif
max. 255 caractèresnullable
rolesobject[]facultatif

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

nullable
keystringobligatoire
1–100 caractères
labelstringobligatoire
1–200 caractères
orderintegerfacultatif
≥ 0Par défaut : 0
defaultRuleobjectfacultatif
nullable
usableInstring[]facultatif

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

nullable
documentTypeIdstringfacultatif

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

nullable
signingobjectfacultatif
nullable
verificationstringfacultatif
EMAIL_LINKEMAIL_OTP
expiryDaysintegerfacultatif
1 – 365nullable
reminderDaysintegerfacultatif
1 – 30nullable
isActivebooleanfacultatif
Par défaut : true
sortOrdernumberfacultatif
Par défaut : 0

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/dms_templates — Liste, paginée et filtrable
  • GET /api/v1/dms_templates/<id> — Une entité
  • POST /api/v1/dms_templates — Créer
  • PATCH /api/v1/dms_templates/<id> — Mise à jour partielle
  • DELETE /api/v1/dms_templates/<id> — Suppression logique
  • GET /api/v1/dms_templates/<id>/timeline — Audit et activités

Recherche