POST /v1/dms-templates/preview-draft
POST/v1/dms-templates/preview-draft
Render a live preview of an unsaved template draft.
Datamodel
Deze operatie werkt op de entiteit DMS Template (dms_template). Alle 16 velden — type, validatie, verplichte velden, relaties — staan in de schemareferentie.
Request body
| Naam | Type | Beschrijving |
|---|---|---|
htmlTemplatevereist | string | |
cssStyles | string | |
paperSize | string | |
orientation | string | |
margins | object | |
headerHtml | string | |
footerHtml | string | |
sampleData | object |
Voorbeeld
curl -X POST https://api.codemeta-os.de/v1/dms-templates/preview-draft \
-H "X-Tenant-Id: $TENANT" \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{
"htmlTemplate": "string",
"cssStyles": "string",
"paperSize": "string",
"orientation": "PORTRAIT",
"margins": null,
"headerHtml": "string",
"footerHtml": "string",
"sampleData": null
}'const result = await cm.dms-templates.post({
"htmlTemplate": "string",
"cssStyles": "string",
"paperSize": "string",
"orientation": "PORTRAIT",
"margins": null,
"headerHtml": "string",
"footerHtml": "string",
"sampleData": null
});Antwoordcodes
| HTTP | Betekenis |
|---|---|
200 |
Default Response |