Templates
Publish template
Promotes a draft to published: the source is normalized, compiled against the default fixture suite, and frozen as a new version that the latest channel points at. Calling it again on a published template ships the current draft the same way, so edits made since the last publish (in the embedded editor, for example) reach renders; with no edits since, latest stays on the newest version and no duplicate is frozen. Published templates are visible to the whole organization and renderable over the API. The caller must own the template or be an organization admin/owner. Enforces the plan's published-template limit.
post/v2/organizations/{organizationId}/templates/{externalId}/publish
Request
- Base URL: https://api.pdfs.build
- URL: https://api.pdfs.build/v2/organizations/{organizationId}/templates/{externalId}/publish
- Auth: HTTP bearer
Request body
Response
The published template, with the version latest now serves.
Example response
{
"scopePath": "acct_9f3/entity_dubai/",
"createdAt": "2026-08-30T12:00:00.123456",
"updatedAt": "2026-08-30T12:00:00.123456"
}Changes
No recorded changes to this operation across all 1 revision of this API.