Create a move-to-step step
POST /automations/{automationUuid}/automation_steps/move_to_step
/automations/{automationUuid}/automation_steps/move_to_stepSends the contact to another step of the same automation, to make a loop or a shortcut. It can only be placed at the end of a branch, and until you set its target with update_step_move_to_step the contact's run simply ends here.
When to use: To repeat part of a flow, or to join two branches into the same continuation.
When not to use: To hand the contact to a different automation, use create_step_trigger_automation.
Side effects: The target cannot be this step itself, another move-to-step step, a step of another automation, or a step that would create an endless loop. The target is not set when the step is created: set it afterwards with update_step_move_to_step.
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.
The new 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 POST "https://api.easymailing.com/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/move_to_step" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "action": { "target_step": "/entity/1" }, "parent": "/entity/1", "parent_yes": "/entity/1", "parent_no": "/entity/1" }'{ "target_step_label": "string", "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": { "target_step": "/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 } }}