Skip to main content
PATCH
Update a fleet

Authorizations

Authorization
string
header
required

Obtain a token via the CLI auth flow (POST /v1/auth/sessions) or GitHub OAuth

Headers

If-Match
string

Optional source-version tag from GET. Stale values return 412 with the current etag.

Path Parameters

workspace_id
string<uuid>
required

UUIDv7 of the workspace.

fleet_id
string<uuid>
required

UUIDv7 of the fleet.

Body

application/json
config_json
string

Replaces the fleet config with a JSON string. Mutually exclusive with trigger_markdown.

trigger_markdown
string

Replaces TRIGGER.md and updates the fleet name and triggers. Must be non-empty. Mutually exclusive with config_json.

source_markdown
string

Replaces SKILL.md and its settings. Must be non-empty. The skill name must match the current fleet name.

status
enum<string>

New fleet state. active resumes, and stopped can resume later. killed is final. Only the service can set paused.

Available options:
active,
stopped,
killed

Response

OK

fleet_id
string<uuid>
status
enum<string>

Present only when the request body included a status field. Echoes the new status.

Available options:
active,
stopped,
killed
config_revision
integer<int64>
etag
string

Fresh version of the editable source fields after the update.