Actions26
- Block Actions
- Collection Actions
- Daily Note Actions
- Document Actions
- Folder Actions
- Task Actions
Block → Insert Blocks
AI-generatedSummary
Insert one or more block objects into a Craft document at a specified position.
Inputs
- Blocks (required) — Array of block objects to create and insert into the document.
- Insert Position — Specify where to insert the blocks, choosing from start or end of a page, or before/after an existing block. Additional details like Page ID (for multi-document credentials), Daily Note Date (for daily notes credentials), or Sibling ID (required when inserting before or after a block) may be provided depending on the position type.
Output shape
a list of inserted block objects reflecting the newly created blocks in the Craft document(s).
The output includes one item per inserted block with their properties. The insert position parameter governs where the blocks are added. Credentials type and permissions affect availability and operations.
Examples
Example 1: Insert blocks at the end of a document page by providing blocks array and Insert Position type as 'End of Page' with optional Page ID for multi-document contexts.
Blocks parameter as JSON array describing blocks, Insert Position with Position Type = 'end', optional Page ID or Daily Note Date depending on connection type.