POST /v1/dms-templates/preview-draft
POST/v1/dms-templates/preview-draft
Render a live preview of an unsaved template draft.
Modèle de données
Cette opération porte sur l'entité DMS Template (dms_template). Les 16 champs (type, validation, caractère obligatoire, relations) figurent dans la référence du schéma.
Corps de la requête
| Nom | Type | Description |
|---|---|---|
htmlTemplateobligatoire | string | |
cssStyles | string | |
paperSize | string | |
orientation | string | |
margins | object | |
headerHtml | string | |
footerHtml | string | |
sampleData | object |
Exemple
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
});Codes de réponse
| HTTP | Signification |
|---|---|
200 |
Default Response |