Skip to main content
POST
Create a schedule for the running fleet

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.

Body

application/json

POST /v1/runners/me/leases/{lease_id}/schedules request.

cron
string
required

A five-field cron expression.

fencing_token
integer<int64>
required

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

Required range: x >= 0
message
string
required

What the fleet is asked to do when it fires.

once
boolean

Whether it retires after its first fire.

timezone
string | null

The zone the expression is read in; UTC when absent.

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.