Legacy v1

Publish template (v1)

post/v1/templates/{id}/publish

Request

  • Base URL: https://api.pdfs.build
  • URL: https://api.pdfs.build/v1/templates/{id}/publish
  • Auth: HTTP bearer

Request body

namestring

Rename on publish.

descriptionstring

Update the description on publish.

Response

The published template, with the version latest now serves.

idstring required

Internal id.

namestring required
descriptionstring nullable
status'draft' | 'published' required
createdAtstring required

UTC, ISO 8601 without a timezone suffix.

updatedAtstring required

UTC, ISO 8601 without a timezone suffix.

schemaobject nullable
sampleDataobject nullable
baseTemplateIdstring nullable
userIdstring required
organizationIdstring nullable
publishedVersioninteger required

The version latest now points at: the one this publish froze, or the newest existing one when nothing changed since it. Pin renders to it with version.

Example response

{
  "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.