API · v1 · stabil
CODEMETA OSDeveloper Center
Konsole öffnen

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

Datenmodell

Diese Operation arbeitet auf der Entität DMS Template (dms_template). Alle 16 Felder — Typ, Validierung, Pflichtangabe, Beziehungen — stehen in der Schema-Referenz.

Request Body

NameTypBeschreibung
variableserforderlichobject
entityRefsobject
titleerforderlichstring
folderIdstring
tagsstring[]

Pfad-Parameter

NameTypBeschreibung
iderforderlichstring

Beispiel

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

Antwortcodes

HTTP Bedeutung
200 Default Response

Suche