Skip to main content
PATCH
Change a schedule the fleet made

Authorizations

Authorization
string
header
required

The opaque agt_r token minted when the runner enrols (POST /v1/runners)

Path Parameters

lease_id
string
required

UUIDv7 of the lease.

schedule_id
string
required

UUIDv7 of the schedule.

Body

application/json

PATCH /v1/runners/me/leases/{lease_id}/schedules/{schedule_id} request.

Every field but the fence is optional, and an absent one is left alone.

fencing_token
integer<int64>
required

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

Required range: x >= 0
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
integer<int64>
required

When it was created.

cron
string
required

The expression it fires on.

etag
string
required

Strong tag binding the pinned recipe, setup and instance override.

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.

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
integer<int64>
required

When it was last changed.

last_error
string | null

Why the last push failed, when one did.

override
null | object

Explicit instance overlay, omitted when the pinned recipe is inherited.