- Write Email Image
Tool name: update-email-editor-image-block
Updates email image blocks by UUID: account-library source, alternative text and link. Use an image URL from list-email-editor-images or an upload. Avoid external stock/provider URLs: recipients’ mail clients would load them from a third party. Display width stays unchanged. Revision-bound, atomic edit: put every change to one email into one call, never parallel calls; drafts only; publishing is publish-newsletter-email-content.
The contentRevision of the read this change is based on
The image blocks to write, each by uuid; a field left out keeps its value, an empty href removes the link
{ "editorUrl": "stringstring", "contentRevision": "strings", "images": [ { "uuid": "string", "src": "string", "alt": "string", "href": "string" } ], "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" }