Reorder a phase
Flow
Reorder a phase
Moves a phase one place earlier (up) or later (down), swapping it with its neighbour among the live phases. A new phase always lands just before the closing phase, so this is how you place it. The closing phase stays last and nothing moves past it — attempting either is a 422, as is moving beyond the first or last position. Trial-compiles.
PATCH
Reorder a phase
Authorizations
Your secret key (pep_sk_…) from Settings → API. Keys are org-scoped; treat them like passwords.
Body
application/json
up moves the phase earlier in the flow, down later.
Available options:
up, down Response
The moved phase, with its new position.
Allowed value:
"flow_state"Available options:
step, loop, terminal 
