Template API

Publish a template draft

Publishes the template's active draft. You can then generate PDFs from the published template by sending its templateId and templateData to a Conversion API endpoint. Wait for any save request for this template to finish before publishing it.

post/v1/templates/{templateId}/publish

Request

  • Base URL: https://api.pdfbolt.com
  • URL: https://api.pdfbolt.com/v1/templates/{templateId}/publish
  • Auth: API key in header PERSONAL-ACCESS-TOKEN

Path parameters

templateIdstring uuid required
Example:00000000-0000-0000-0000-000000000000

UUID of a PDFBolt template.

Request body

commentstring nullable

Optional comment saved with the published version.

Example request

{
  "comment": "Ready for production"
}

Response

Template draft published successfully.

templateIdstring uuid required

UUID of the template whose draft was published.

publishedVersionIdinteger required

Unique identifier of the published version.

versionNumberinteger required

Sequential version number within the template.

Changes

No recorded changes to this operation across all 1 revision of this API.