API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen

POST /v1/dms-templates/{id}/render-and-save

POST/v1/dms-templates/{id}/render-and-save

Render a DMS template, create a DMS document, and upload the PDF to storage

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
variablesvereistobject
entityRefsobject
titlevereiststring
folderIdstring
tagsstring[]

Padparameters

NaamTypeBeschrijving
idvereiststring

Voorbeeld

curl -X POST https://api.codemeta-os.de/v1/dms-templates/{id}/render-and-save \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "variables": null,
  "entityRefs": null,
  "title": "string",
  "folderId": "string",
  "tags": []
}'
const result = await cm.dms-templates.post({
  "variables": null,
  "entityRefs": null,
  "title": "string",
  "folderId": "string",
  "tags": []
});

Antwoordcodes

HTTP Betekenis
200 Default Response

Zoeken