Delete a workflow
DELETE /workflows/{uuid}
/workflows/{uuid}Deletes a workflow for good, published or not. It answers nothing (204); afterwards the workflow does not exist for the API (404 workflow_not_found).
When to use: Only when the user explicitly wants the workflow gone, for example a test or a duplicate.
When not to use: To stop it for a while use pause_workflow; to stop only new entries, set_workflow_entry_state. To remove one step or trigger, change the draft with update_workflow. Classic automations are deleted with delete_automation.
Side effects: It cannot be undone: there is no archive nor recovery. Its entries close at once and the executions still running or waiting are cancelled in the background shortly after, without taking any further step; its history keeps its name as evidence. The records it created or changed, and the emails it already sent, are not touched. It frees its slot in the plan limit of automations, and its responsible is not needed.
Permissions: Requires the automations.manage capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the workflow. Get it from list_workflows.
uuidResponse Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X DELETE "https://api.easymailing.com/workflows/3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61" \ -H "X-Auth-Token: YOUR_API_KEY"