Move a step to a new position
PUT /automations/{automationUuid}/automation_steps/{uuid}/position
/automations/{automationUuid}/automation_steps/{uuid}/positionMoves an existing step to another place in the flow: the first position, after another step, or into the yes or no branch of a condition step.
When to use: To reorder a flow without deleting and recreating steps, or to attach an orphan step (one not connected to the flow) to it.
When not to use: To change the settings of a step, use the matching update_step_* operation.
Side effects: The step that followed the moved one takes its old place. If the target position is occupied, the moved step is inserted there and the step that was there ends up after it; moving to first position makes the previous first step follow the moved one.
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.
UUID of the step, as returned by list_automation_steps.
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/position" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "first": true, "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": null, "children": null}