- Replace Rich-Text Email Content
Tool name: replace-email-editor-rich-text-content
Replaces a rich-text email’s entire body (newsletter, automation or notification; by email ID or editor URL) without undo or a publish step; the stored body is what dispatch sends. Requires a subject and the current contentRevision from get-email-editor-rich-text-content. HTML is stored only as KlickTipp normalises it: no html, head, body or script, self-closed
, closed
and
contentRevision of the preceding get-email-editor-rich-text-content; a stale one refuses the write
Complete HTML body, at most what a read hands back; pass an empty string only with contentType "plain-only"
Complete plain-text body, kept only if the account maintains plain text itself (else generated from the HTML, with a warning); omit to have KlickTipp generate it
"html-and-plain" or "plain-only"; omit to keep what the email uses
Editor URL of the email, as get-email-editor-content returned it; omit when the email ID is given
{ "contentRevision": "strings", "html": "string", "plain": null, "contentType": "html-and-plain", "emailId": null, "editorUrl": null, "accountId": null }
Names this email for the tools; not a link to open in KlickTipp. To show the email to a person, use contentUrl from get-newsletter.
{ "operation": "replaced", "accountId": 0, "emailId": 0, "contentType": "html-and-plain", "plainSource": "derived", "contentRevision": "string", "editorUrl": "string", "warnings": [ "string" ] }