Skip to main content
DELETE
Delete 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).

Query Parameters

fencing_token
integer<int64>
required

Attempt token returned with the run. Replaced assignments are refused.

Required range: x >= 0

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.