- Write Email Page Style
Tool name: update-email-editor-page-style
Updates an email’s page background (the colour around the message), default text and link colours, font, width and alignment. The colour behind the content uses update-email-editor-row-style. Text and link colours are copied into blocks when they are added, so set them before adding blocks. 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
Colour around the message, "#RRGGBB" or "transparent"
Default text colour of the whole email
Default colour of every link of the email
Default font of the whole email, by name; see the schema for the names
Where the message sits when the window is wider than it is
{ "editorUrl": "stringstring", "contentRevision": "strings", "backgroundColor": null, "textColor": null, "linkColor": null, "contentWidth": null, "fontFamily": "Arial", "contentAlign": "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" }