Actions19
- Category Actions
- Document Actions
- Template Actions
Document → Create
AI-generatedSummary
Create a new document from a specified template with optional customization.
Inputs
- Template ID (required) — ID of the template to create this document from
- Name — Optional name for the new document
- Init (Empty Document) — Whether to create an empty document without any data
- Settings (JSON) — Document settings such as size, background, color, margin, padding, and fontSize; used only when creating a non-empty document
- Data (JSON) — Field data for the document as a JSON object; used only when creating a non-empty document
Output shape
a single object representing the created document resource
If 'Init (Empty Document)' is true, the document is created without data. Otherwise, 'Settings (JSON)' and 'Data (JSON)' can optionally customize the document's content and appearance. The output JSON contains details about the newly created document.
Examples
Example 1: Create a document from template with name and data
Provide Template ID (required), optional Name, set Init to false (default), and supply Data (JSON) and Settings (JSON) to customize.
Example 2: Create an empty document from template
Provide Template ID and set Init (Empty Document) to true; Settings and Data fields are hidden and ignored.