Skip to main content
PATCH
Stop a fleet turn

Authorizations

Authorization
string
header
required

Send a dashboard session token, an account API key (agt_t), or a command-line credential (afc_) as a Bearer token. Each endpoint lists accepted credential types.

Path Parameters

workspace_id
string
required

Workspace identifier (version 7 universally unique identifier, or UUID).

fleet_id
string
required

Fleet identifier (version 7 universally unique identifier, or UUID).

turn_id
string
required

Turn identifier (version 7 universally unique identifier, or UUID).

Body

application/json

PATCH …/turns/{turn_id}: stop the turn.

status
enum<string>
required

The status to set; cancelled is the only one.

Available options:
cancelled

Response

OK

One turn as the expanded view renders it — bodies included.

actor
string
required

Who or what produced the turn.

created_at
string<date-time>
required

When the row was created.

event_type
string
required

How the turn entered the system, as stored.

fleet_id
string
required

The fleet this turn belongs to.

request_json
string
required

The trigger payload as stored, serialized to text.

status
string
required

Where the turn's run got to, as stored.

turn_id
string
required

The canonical turn identifier — the stream entry id that produced it.

updated_at
string<date-time>
required

When the row last changed.

workspace_id
string
required

The workspace the fleet belongs to.

cost_nanos
string | null

What this turn actually cost, summed over its telemetry rows.

Pattern: ^(0|[1-9][0-9]*)$
durable_task_activity
object

Retained public task progress, separate from private conversation state.

failure_detail
string | null

The operator-readable cause line, absent when none was carried.

failure_label
string | null

What refused or failed the run, absent on a clean one.

response_text
string | null

The agent's full answer.

null while a run is in flight, and on a run that failed before producing one.

resumes_turn_id
string | null

The turn this one continues, set on a continuation.

tokens
integer<int64> | null

Tokens the run spent, absent until a runner reports.

tool_calls
object | null

Beta: this field may change shape before it is stable.

wall_ms
integer<int64> | null

Wall milliseconds the run took, absent until a runner reports.