Edit email content

POST /templates/:id/content

Edit a template (or, at /broadcasts/:id/content, a draft broadcast) block by block. Anyone with it open in the editor sees the change within seconds and can undo it. Template changes stay a draft until published.

FieldTypeDescription
opsobject[]Operations, in order: replace, update, insert, delete, move. See the AI writing guide.
blocksobject[]Replace every block.
subjectstringNew subject.
preview_textstringNew preview text (broadcasts).
summarystringOne line on what changed, shown in the editor.

More guides