Add Single Block
plone_add_single_blockInsert a new block into any Plone content at a specified position, preserving existing blocks. Define block type, data, and optional placement.
Instructions
Adds a single new block to an existing content item without replacing other blocks. Specify the block type, data, and optional position. Example: plone_add_single_block({path: '/my-page', blockType: 'text', blockData: {text: 'New paragraph'}})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the content | |
| position | No | Position to insert the block (optional, defaults to end) | |
| blockData | Yes | Block-specific data | |
| blockType | Yes | Type of block to add |