Set Sequence Status
POST /sequences/{sequence_id}/status
Drive the status machine directly. PREFER THE NAMED TRANSITIONS.
/launch, /pause, /resume, /terminate and /archive each run the
wind-down, scheduling and event work that belongs to them. This endpoint
only SETS THE STATUS, so a sequence moved to terminated this way never
emits its termination event and its workers are never wound down. It is
exposed because the app exposes it and a rebuilt settings panel uses it -
not because it is the way to stop a sequence.
The app’s state machine rejects an illegal transition.
Authorizations
Parameters
Path Parameters
Sequence id.
Sequence id.
Header Parameters
Request Body required
Drive the sequence status machine directly.
Prefer the named transitions (/launch, /pause, /resume,
/terminate, /archive) - each runs the wind-down, scheduling and event
work that belongs to it. This endpoint SETS THE STATUS, and the app’s
state machine is what rejects an illegal transition.
object
Target status: drafted, scheduling, live, pausing, paused, resuming, terminating, terminated, completed or waiting. Declared as an open string rather than an enum so a status the sequencer adds is not rejected by a stale copy here - the app’s own SequenceStatus enum is the source of truth and an unknown value comes back as a 422 that LISTS the valid set.
Responses
200
Successful Response
object
One sequence, as the lifecycle endpoints return it.
object
422
Validation Error