Skip to main content
PATCH
Change a schedule the fleet made

Authorizations

Authorization
string
header
required

Runner token beginning with agt_r, returned once by POST /v1/admin/runners

Path Parameters

run_id
string
required

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

schedule_id
string
required

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

Body

application/json

Changes to a fleet-created schedule. The attempt number is required; omitted schedule fields keep their current values.

call_number
integer<int64>
required

The call's number within its run, from 1, as its record names it.

Required range: x >= 0
fencing_token
integer<int64>
required

The run's fencing token; a holder the fleet has superseded is refused.

Required range: x >= 0
item_id
string
required

The item this call is: a UUIDv7 the runner mints once per call. A retry sends it again and gets the first result.

cron
string | null

A new expression.

message
string | null

A new message.

paused
boolean | null

Whether it should stop firing.

timezone
string | null

A new zone.

Response

The schedule as reconciled with the scheduler

One schedule, as the tenant surface renders it.

created_at
string<date-time>
required

When it was created.

cron
string
required

The expression it fires on.

description
string
required

The expression in words, with the zone it is read in, for example At 9:00 AM (Asia/Kolkata).

etag
string
required

The schedule's current ETag; send it in If-Match to change it.

fleet_id
string
required

The fleet it wakes.

message
string
required

What the fleet is asked to do.

once
boolean
required

Whether it retires after its first fire. Beta: this field may change shape before it is stable.

run_state
enum<string>
required

Whether the schedule will run, as the server reads it now.

Available options:
scheduled,
paused,
activation_pending,
next_run_unavailable
schedule_id
string
required

Its identity.

source
string
required

Who made it: api for a person, trigger for the fleet's own document, fleet for the fleet while it ran. Only a fleet schedule can be changed by the fleet. Beta: this field may change shape before it is stable.

status
string
required

What the operator wants it to be doing.

sync
string
required

How far agentsfleet has brought the external scheduler in line.

A schedule can save without registering. This field shows you that state.

timezone
string
required

The zone that expression is read in.

updated_at
string<date-time>
required

When it was last changed.

last_error
string | null

Why the last push failed, when one did.

next_run_at
string<date-time> | null

When it next runs, computed by the server from the expression and its zone. Null unless run_state is scheduled.