Skip to main content
POST
Create a hosted schedule

Authorizations

Authorization
string
header
required

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

Path Parameters

workspace_id
string
required

UUIDv7 of the workspace.

fleet_id
string
required

UUIDv7 of the fleet.

Body

application/json

What a caller sends to create a schedule.

cron
string
required

The expression it fires on.

message
string
required

What the fleet is asked to do when it fires.

timezone
string | null

The zone that expression is read in. Absent means UTC.

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.

fleet_id
string
required

The fleet it wakes.

message
string
required

What the fleet is asked to do.

schedule_id
string
required

Its identity.

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.