Skip to content

Create Document Template Draft

POST /public-api/publicapi.v1.ContentTemplate/CreateDocumentTemplate

Requires settings write access and document_template:create.

{ "name": "Inspection report", "pageSize": "a4", "orientation": "portrait" }

Name must be nonblank, at most 200 characters, without NUL characters. Page size is a4 (default), a3, or letter; orientation is portrait (default) or landscape. Creates a blank, single-page PDF draft with fixed 20 mm top/bottom and 15 mm left/right margins, no rows or content.

Returns template metadata with draft revision and unpublished flags. It does not generate a PDF, publish a version, or assign a template to a flow. The public contract accepts no content, layout JSON, custom inputs, arbitrary configuration, draft edits, or publish command. Use document settings to author the draft. Creation is not idempotent; inspect the catalog before retrying an uncertain result.

Generated Reference
POST /public-api/publicapi.v1.ContentTemplate/CreateDocumentTemplate

Creates a blank one-page PDF draft to edit in document settings. Never publishes, generates a PDF, or assigns to a flow. Not idempotent.

Request CreateDocumentTemplateRequest
Response ContentTemplateGetResponse

CreateDocumentTemplateRequest

Field Type Description
name string
page_size string Defaults to a4, portrait. Fixed margins: top/bottom 20 mm, left/right 15 mm.
orientation string

ContentTemplateGetResponse

Field Type
template ContentTemplate