Easymailing
Workflows

Pause a workflow as a whole

POST /workflows/{uuid}/actions/pause

POST/workflows/{uuid}/actions/pause

Pauses a published workflow as a whole and answers it as get_workflow reads it, with paused_at set. It has no body.

When to use: To stop a workflow for a while without deleting it: while fixing a problem, during a campaign or holidays, or to free its slot in the plan limit of automations. Start it again with resume_workflow.

When not to use: To stop only new entries and let what is inside go on, use set_workflow_entry_state with paused. To remove it for good use delete_workflow. Classic automations are paused with automation_pause.

Side effects: Nobody enters the workflow and no execution moves on to its next step (a step already started is let finish); the waits stop counting until it is resumed, so nothing goes out in a burst then. The entries keep their state and its responsible is not needed. It frees one automation of the plan limit. Pausing it again changes nothing.

Permissions: Requires the automations.manage capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the workflow. Get it from list_workflows.

Formatuuid

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://api.easymailing.com/workflows/3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61/actions/pause" \  -H "X-Auth-Token: YOUR_API_KEY"
{  "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",  "title": "string",  "status": "draft",  "published_revision": 0,  "unpublished_changes": true,  "trigger_catalog_ids": [    "string"  ],  "entries_open": true,  "paused_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",  "draft_version": 1,  "definition": {},  "triggers": [    {      "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",      "entry_state": "open",      "published_since_revision": 1    }  ],  "versions": [    {      "revision": 1,      "published_at": "2019-08-24T14:15:22Z",      "published_by": "9ac9eee7-2153-423d-b22d-04e12679154a",      "node_count": 0    }  ],  "resuming": true,  "responsible": {    "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",    "name": "string",    "email": "string",    "can_act": true  }}