Insert Template Block
meisa_insert_template_blockInsert a new block into a template at a given position. Provide the block type and the 0-based at_index where it should go (0 = top; an index at or beyond the current block count appends to the end). Optional content and settings; any settings you pass are merged over the block type's defaults, so a bare insert still produces a sensible block. Use meisa_get_template_blocks first to decide the index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | The block type to insert. | |
| content | No | Optional content for the new block (same meaning as in meisa_update_template_block). If omitted, a sensible default for the block type is used. | |
| at_index | No | 0-based insert position. Omit to append at the end. Clamped to the valid range. | |
| settings | No | Optional settings merged over the block type's defaults. | |
| template_id | Yes | The UUID of the email template to edit. |