API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console

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

Data model

This operation works on the entity DMS Template (dms_template). All 16 fields — type, validation, required status, relationships — are listed in the schema reference.

Request body

NameTypeDescription
variablesrequiredobject
entityRefsobject
titlerequiredstring
folderIdstring
tagsstring[]

Path parameters

NameTypeDescription
idrequiredstring

Example

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": []
});

Response codes

HTTP Meaning
200 Default Response

Search