Easymailing
Workflows

Resume a paused workflow

POST /workflows/{uuid}/actions/resume

POST/workflows/{uuid}/actions/resume

Resumes a workflow paused as a whole with pause_workflow and answers it as get_workflow reads it. It has no body.

When to use: To start again a workflow that pause_workflow stopped (paused_at is set).

When not to use: If only its entries were paused (entries_open false, paused_at null), reopen them with set_workflow_entry_state. A workflow under commercial review (status commercial-paused) is reviewed and reactivated in Easymailing › Automations. A draft never published is started with publish_workflow.

Side effects: Each wait in progress moves forward by what the pause lasted (its remaining time is kept), and what fell due during the pause goes out staggered, never in a burst; the executions go on from where they stopped and new entries are admitted again as the entries were last set. It takes one automation of the plan limit again. With many waits (more than 5,000) the request moves part of them and the rest moves in the background: the answer has resuming true and keeps paused_at until it ends, and resuming again meanwhile is safe. Resuming one that is not paused changes nothing.

Permissions: Requires the automations.manage capability. The account must also have room in its plan limit of automations.

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/resume" \  -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  }}