POST /v1/dms-templates/preview-draft
POST/v1/dms-templates/preview-draft
Render a live preview of an unsaved template draft.
Modelo de datos
Esta operación trabaja sobre la entidad DMS Template (dms_template). Los 16 campos (tipo, validación, obligatoriedad y relaciones) figuran en la referencia del esquema.
Cuerpo de la solicitud
| Nombre | Tipo | Descripción |
|---|---|---|
htmlTemplateobligatorio | string | |
cssStyles | string | |
paperSize | string | |
orientation | string | |
margins | object | |
headerHtml | string | |
footerHtml | string | |
sampleData | object |
Ejemplo
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
});Códigos de respuesta
| HTTP | Significado |
|---|---|
200 |
Default Response |