API Reference
Save New Template
Finalizes template creation by saving template info to Strapi, copying preview files to permanent storage, and creating template index. Removes unfinished tag upon completion.
AuthorizationBearer <token>
In: header
Path Parameters
templateIdstring
templateInfo
previewIds
Response Body
curl -X POST "https://api.pogodoc.com/v1/templates/string" \ -H "Content-Type: application/json" \ -d '{ "templateInfo": { "title": "string", "description": "string", "type": "docx", "sampleData": { "property1": null, "property2": null }, "categories": [ "invoice" ] }, "previewIds": { "pngJobId": "string", "pdfJobId": "string" } }'Empty