API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la 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

Modèle de données

Cette opération porte sur l'entité DMS Template (dms_template). Les 16 champs (type, validation, caractère obligatoire, relations) figurent dans la référence du schéma.

Corps de la requête

NomTypeDescription
variablesobligatoireobject
entityRefsobject
titleobligatoirestring
folderIdstring
tagsstring[]

Paramètres de chemin

NomTypeDescription
idobligatoirestring

Exemple

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

Codes de réponse

HTTP Signification
200 Default Response

Recherche