Advance a Task Run to its next phase
Open the next phase of a Task Run that is paused at a phase gate.
Optionally guard the transition with expectedPhaseIndex: when set, the
phase that would be opened must match, otherwise Flow rejects the advance
so a stale client cannot open the wrong phase.
Task Runs are site-scoped; siteId must be the Site that owns the
Task Run. Org must have an Infrastructure Provider entity. User must have
authorization role with PROVIDER_ADMIN suffix.
Authentication
export JWT_BEARER_TOKEN="<jwt-bearer-token>"
# Example org name: "acme-inc
export ORG_NAME=<org-name>
# Use the JWT bearer token in your API request auth header:
curl -v -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $JWT_BEARER_TOKEN" https://nico-rest-api.nico.svc.cluster.local/v2/org/$ORG_NAME/nico/user/current
Path parameters
Request
Optional guard: when set, the phase that would be opened must match this zero-based index, otherwise the advance is rejected.
Response
Human-readable name of the Task Run.
Type of operation this Task Run executes. Currently always FirmwareControl.
Why the Task Run is paused or terminal (e.g. PhaseGate, SafetyGate).
None when there is no qualifying reason.
Optional free-form description.
Operation code within the operation type (e.g. upgrade).
Optional human-readable detail for the current status.
Derived per-phase outcome stats. Present only on the single-Task-Run
GET when includeStats=true; omitted otherwise.