Skip to content

Delete Automation Action

Tool name: delete-automation-action

Deletes an action from an inactive automation, discarding the selected branch or preserving a chosen successor. Decision choices are keep_yes, keep_no or subtree; other actions use keep_next or subtree. The start action cannot be deleted; incoming goto references must be changed first. Emails stay. dryRun previews without saving.

Input schema

automationIdinteger, >= 1required
actionIdinteger, >= 1required
revisionstring^[a-f0-9]{64}$required
modestringrequired
Enum:"keep_next""keep_yes""keep_no""subtree"
dryRunboolean
Default:false
accountIdnull or integer, >= 1
Default:null
Input example
{ "automationId": 1, "actionId": 1, "revision": "string", "mode": "keep_next", "dryRun": false, "accountId": null }

Output schema

automationIdintegerrequired
namestringrequired
revisionstringrequired
statusstringrequired
editorUrlstringrequired
graphobjectrequired
findingsArray of objectsrequired
editablebooleanrequired
dryRunbooleanrequired
settingsArray of any or objectrequired
splitTestsArray of objectsrequired
Output example
{ "automationId": 0, "name": "string", "revision": "string", "status": "string", "editorUrl": "string", "graph": { "start": 0, "goals": [ 0 ], "states": [ {} ] }, "findings": [ { "actionId": 0, "code": "string", "message": "string", "warning": true, "variantId": 0 } ], "editable": true, "dryRun": true, "settings": {}, "splitTests": [ {} ] }