- Write Email Block Style
Tool name: update-email-editor-block-style
Writes the space around one block and how its content sits -- left, centred, right or justified. Works for a block of any kind, an image and a divider included; those two take left, centre and right only, because justifying a picture or a rule means nothing. The alignment lands where that kind of block keeps it, which is not the same field for all of them, and a read reports it from there, so what comes back is what the recipient sees. The typography of a text block is not here: its font, size, line height and colour live in the markup of that block, so they are changed with update-email-editor-text, and the size an image is shown at belongs to the image. Everything not named stays as it is. Bound to the contentRevision of the read and refused whole if anything in it fails, so nothing half-written is stored. Drafts only. Saves the draft; 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
{ "editorUrl": "stringstring", "contentRevision": "strings", "uuids": [ "string" ], "paddingTop": null, "paddingRight": null, "paddingBottom": null, "paddingLeft": null, "textAlign": "left", "hideOnMobile": null, "hideOnDesktop": null, "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" }