Update Template Block
meisa_update_template_blockEdit a single block in a template without touching the rest of the email. Pass the block_id from meisa_get_template_blocks (position-based, e.g. blk-0), plus the content and/or settings to change. settings are merged shallowly over the block's existing settings, so you only need to send the keys you want to change (e.g. {"color": "#ff0000"} on a heading). The block's HTML is re-serialized and the template's plain-text body is regenerated automatically. Block ids are position-based (blk-0, blk-1, ...) and stable while order is unchanged; re-read after any insert/delete/move.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | New content for the block. Meaning depends on block type: the text/heading/quote string, newline-separated items for a list, double-newline-separated paragraphs for callout/conditional, or raw HTML for an html block. Image/button/divider/spacer carry their data in settings, not content. | |
| block_id | Yes | The id of the block to update, from meisa_get_template_blocks (position-based, e.g. blk-0). | |
| settings | No | Block settings to merge in (only the keys you pass are changed). Examples: heading {"level": "h1", "align": "center", "color": "#111"}; button {"text": "Buy", "link": "https://...", "backgroundColor": "#1789FC"}; image {"src": "https://...", "alt": "...", "width": "80%", "link": "https://..."}. | |
| template_id | Yes | The UUID of the email template to edit. |