- Update AI Block In Email Editor
Tool name: update-email-editor-ai-block
Changes the instruction, name, data fields or tags of an existing AI block (Smart Mail) of an automation email; what is omitted stays, a passed list replaces the old one. The previous instruction is not kept. Foreign field or tag ids are refused. Removing the block is remove-email-editor-block. 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 blockUuid of the AI block, as list-email-editor-ai-blocks answers it
The data field ids it may use, replacing the list; omit to keep, [] to clear
The tag ids it may use, replacing the list; omit to keep, [] to clear
{ "editorUrl": "stringstring", "contentRevision": "strings", "uuid": "string", "prompt": null, "name": null, "fieldIds": null, "tagIds": 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" }