Easymailing
Automation steps

Update a trigger-automation step

PUT /automations/{automationUuid}/automation_steps/{uuid}/trigger_automation

PUT/automations/{automationUuid}/automation_steps/{uuid}/trigger_automation

Changes an existing trigger-automation step by replacing its settings with the values you send. The step keeps its place in the flow; position fields in the body are ignored.

When to use: To change the automation that is started.

When not to use: To add a new trigger-automation step to a flow, use create_step_trigger_automation. Call this operation only on a step whose step_type is step.trigger.automation: the API does not check it, and sending the wrong kind replaces the settings of a step of another type with settings that do not fit it, which can break the step. To move the step, use move_step_position; to change its type, delete it with delete_automation_step and create a new one.

Side effects: Contacts that have not yet passed this step use the new settings.

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

automationUuid*string

UUID of the automation, as returned by list_automations.

uuid*string

UUID of the step, as returned by list_automation_steps.

Request Body

The updated AutomationStep resource

TypeScript Definitions

Use the request body type in TypeScript.

API Resource for automation steps.

This class defines the API endpoints and serves as the base class for all automation step types. Uses DiscriminatorMap for polymorphic serialization.

Response Body

application/problem+json

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/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90/trigger_automation" \  -H "X-Auth-Token: YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "action": {      "automation": "/entity/1"    },    "parent": "/entity/1",    "parent_yes": "/entity/1",    "parent_no": "/entity/1"  }'
{  "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",  "step_type": "string",  "automation": "/entity/1",  "count_automation_queue_items_completed": 0,  "count_automation_queue_items_in_queue": 0,  "action": {    "automation": "/entity/1"  },  "children": {    "next": {      "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",      "step_type": "string",      "automation": "/entity/1",      "count_automation_queue_items_completed": 0,      "count_automation_queue_items_in_queue": 0,      "action": null,      "children": null    }  }}