Skip to main content
POST
Create a hosted schedule

Authorizations

Authorization
string
header
required

Send a dashboard session token, an account API key (agt_t), or a command-line credential (afc_) as a Bearer token. Each endpoint lists accepted credential types.

Path Parameters

workspace_id
string
required

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

fleet_id
string
required

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

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

Saved schedule with its registration status

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

Current ETag covering the selected recipe, setup, and instance overrides.

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.

override
object | null

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