DMS Template Schema
Campos
DMS Template Schema
Schema for validating DMS PDF generation templates (PDF-Vorlagen)
name
Template name
description
templateType
Type of document this template generates
INVOICEOFFERCONTRACTREPORTLETTERCUSTOMengine
HTML_PDF: Puppeteer + Handlebars. PDF_OVERLAY: hochgeladenes PDF mit platzierten Feldern (ersetzt sign_template).
HTML_PDFPDF_OVERLAYhtmlTemplate
Handlebars HTML template body
cssStyles
CSS styles for the template
headerHtml
HTML for page header
variables
Template variables with types
orientation
PORTRAITLANDSCAPEpaperSize
A4A3LETTERLEGALsampleData
Sample JSON data for template preview
thumbnailS3Key
S3 key for template preview thumbnail
contentMode
Fehlt = HTML. VISUAL = im Editor gebaut, HTML-Vorlagen bleiben unverändert
HTMLVISUALnulleditorJson
TipTap-Stand im Modus VISUAL
basePdfDocumentId
PDF_OVERLAY: DMS-Dokument mit dem Grund-PDF
roles
Wer füllt aus, wer unterschreibt, in welcher Reihenfolge
usableIn
Wo die Vorlage nutzbar ist. Fehlt = überall, leer = nirgends (Muster ADR 0984)
documentTypeId
Dokumenttyp des Ergebnisses, zählt für Pflichtdokumente (ADR 0112/0349)
signing
isActive
sortOrder
Ningún campo coincide con el filtro.
Endpoints estándar
Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:
GET /api/v1/dms_templates— Lista, paginada y filtrableGET /api/v1/dms_templates/<id>— Una entidadPOST /api/v1/dms_templates— CrearPATCH /api/v1/dms_templates/<id>— Actualización parcialDELETE /api/v1/dms_templates/<id>— Eliminación lógicaGET /api/v1/dms_templates/<id>/timeline— Auditoría y actividades