Skip to main content
PATCH
Reorder Node
CLI:

Overview

Reorder an existing node by moving it to a new position. Draft campaigns only. Uses an atomic RPC with row-level locking so concurrent moves can’t corrupt the ordering. To edit a node’s content (subject, body, delay values, etc.), use updateSequenceNode instead.
This operation shares the URL path /api/campaigns/{id}/sequence/nodes with other verbs. See the sibling page for related operations on the same resource.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Campaign UUID

Body

application/json
nodeId
string
required

String value with endpoint-specific validation.

toPosition
integer
required
Required range: 0 <= x <= 9007199254740991

Response

Node moved. Returns the fresh ordered list, or a mutation fallback when read-back fails.

sequence_nodes
object[]
required