API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen

POST /v1/dms-templates/{id}/preview

POST/v1/dms-templates/{id}/preview

Preview a DMS template using sample data and return a PDF

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

NaamTypeBeschrijving
sampleDataobject

Padparameters

NaamTypeBeschrijving
idvereiststring

Voorbeeld

curl -X POST https://api.codemeta-os.de/v1/dms-templates/{id}/preview \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "sampleData": null
}'
const result = await cm.dms-templates.post({
  "sampleData": null
});

Antwoordcodes

HTTP Betekenis
200 Default Response

Zoeken