- Copy Email Content
Tool name: replace-email-editor-content-from-email
Copies the drag-and-drop body of one KlickTipp email into another, byte for byte -- the way to build a newsletter on an existing one. Both are addressed by their editor URL and belong to the same account. Nothing is converted, so nothing is lost: layout, images, dividers, tables, KlickTipp decisions and AI blocks all arrive. The source may be any newsletter email of the account, a sent one included, and is only read. The target must be an editable draft; its body is replaced entirely, without undo, and is not published -- use publish-newsletter-email-content, named in nextAction. Bound to the content revision of the target's preceding read. A target that already has content is refused once with a list of what it holds; call again with replaceExistingContent true to copy. Returns content status, new revision and editor URL.
Editor URL of the email to write, exactly as returned by get-email-editor-content
contentRevision of the read of that email; a stale one refuses the copy
Editor URL of the email to copy from; it is only read and stays untouched
true to replace content the target already has; omit on the first attempt, so the answer lists what would be lost
{ "editorUrl": "stringstring", "contentRevision": "strings", "sourceEditorUrl": "stringstring", "replaceExistingContent": 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" }