Activate an automation
PUT /automations/{uuid}/actions/activate
/automations/{uuid}/actions/activateSwitches an automation to active so its triggers start running contacts through its steps.
When to use: When the triggers and steps are ready and the automation should start working, or to resume a paused one.
When not to use: To stop it, use automation_pause. To start one contact right now without waiting for an event, use trigger_custom_api.
Side effects: From then on, contacts that meet a trigger receive the emails and SMS of its steps. Event triggers react to what happens after activation; date and shopping triggers are checked about every minute and can pick up contacts that already match.
Permissions: Requires the author role or higher, or the marketing.automations.write capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the automation, as returned by list_automations.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://api.easymailing.com/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/actions/activate" \ -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"}