steps_reorder
Pass every step sqid of the sequence once, in the new order; they get order 0, 1, 2 … in one transaction. delay_days is not touched — it stays the wait after whatever step now precedes it.
On a sequence a live campaign uses: a lead only advances to the step after the one it is on, so a step moved in front of a lead's current position is never run for that lead (e.g. an API step placed before email 1 is skipped by leads already mailed); leads that have not reached it get the new order.
Method: POST /api/v1/workspaces/{workspace_sqid}/sequences/{sequence_sqid}/steps/reorder/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sequence_sqid": "<sequence_sqid>",
"ordered_sqids": "<ordered_sqids>"
},
"name": "steps_reorder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of results to return per page. | |
| offset | No | The initial index from which to return the results. | |
| ordered_sqids | Yes | ||
| sequence_sqid | Yes |