Easymailing
Automations

Pause an automation

PUT /automations/{uuid}/actions/pause

PUT/automations/{uuid}/actions/pause

Switches an automation to paused so its triggers stop starting new contacts.

When to use: To stop an automation for a while, for example while editing its steps, without deleting it. Resume it with automation_activate.

When not to use: To remove it for good, use delete_automation. To stop only one way of entering, use automation_trigger_pause.

Side effects: It does not cancel the runs already in progress.

Permissions: Requires the author role or higher, or the marketing.automations.write capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the automation, as returned by list_automations.

Response Body

application/problem+json

application/problem+json

application/problem+json

curl -X PUT "https://api.easymailing.com/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/actions/pause" \  -H "X-Auth-Token: YOUR_API_KEY"
{  "id": 0,  "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",  "title": "string",  "description": "string",  "status": "automation.status.draft",  "audience": "string",  "stats": {    "completed": 0,    "in_queue": 0,    "canceled": 0  },  "automation_triggers": [    {      "trigger_type": "trigger.admin.manual",      "active": true,      "workflow_repeat": true,      "trigger": null,      "count_automation_queues": 0,      "count_completed_automation_queues": 0,      "count_queued_automation_queues": 0,      "count_canceled_automation_queues": 0    }  ],  "first_step": "/entity/1",  "orphan_steps": [    "/entity/1"  ],  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}