- Write Email Block Style
Tool name: update-email-editor-block-style
Updates email block padding, alignment, device visibility and image corners, including mobile overrides. Applies to all selected blocks; omitted styles stay. Text typography uses update-email-editor-text-style; image display width is separate. Revision-bound, atomic edit; drafts only; publishing is publish-newsletter-email-content.
The contentRevision of the read this change is based on
The uuids of the blocks to write; the same values land on each
How its content sits: "left", "center", "right", or "justify" where the block is text
How round the corners of an image are, in pixels; image only
Space above the block on a phone, in pixels
How its content sits on a phone
{ "editorUrl": "stringstring", "contentRevision": "strings", "uuids": [ "string" ], "paddingTop": null, "paddingRight": null, "paddingBottom": null, "paddingLeft": null, "textAlign": "left", "hideOnMobile": null, "hideOnDesktop": null, "borderRadius": null, "mobilePaddingTop": null, "mobilePaddingRight": null, "mobilePaddingBottom": null, "mobilePaddingLeft": null, "mobileTextAlign": "left", "accountId": null }
"replaced": the stored document is a new one; "unchanged": nothing was persisted.
What this write created, with uuids: after "addRow" the row and its columns, after "addModule" the block, plus the contentRevision the next write needs. Empty when nothing was created.
{ "operation": "replaced", "previousContentStatus": "draft", "contentStatus": "draft", "emailId": 0, "contentRevision": "string", "warnings": [ "string" ], "editorUrl": "string", "created": [ { "operation": 0, "type": "row", "uuid": "string", "kind": "string", "columns": [ "string" ] } ], "nextAction": "review_and_publish_content" }