Skip to main content
PATCH

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_key
string
required

The unique routing key of the agent the schedule belongs to.

schedule_id
string
required

The schedule's ULID, as returned from create.

Body

application/json
agent_tag
string

Change the pinned agent version.

display_name
string

Rename the schedule.

expression
string

Update the schedule expression. Same 6-field cron shapes as create; minimum firing cadence is 1 hour.

is_active
boolean

Activate or deactivate the schedule. Deactivating removes the NATS entry; activating re-publishes with current values.

payload
object

Update the invocation payload. Payload-only changes do not reset the firing cadence or bump generation.

type
enum<string>

Change the schedule type. Only cron is accepted. Changing type or expression resets the NATS schedule and bumps generation.

Available options:
cron

Response

Schedule updated.

_id
string
required

ULID identifying this schedule.

agent_key
string
required
created
string<date-time>
required
created_by_id
string
required

ID of the API key that created the schedule.

expression
string
required

6-field cron expression. Schedules stored before the cron-only restriction may also return an @every duration or an @at RFC3339 timestamp.

generation
integer<int64>
required

Monotonic counter bumped when the schedule's firing cadence changes. Used by the consumer to skip stale in-flight triggers.

is_active
boolean
required

Whether the schedule is currently firing. Legacy once schedules flip to false automatically after firing.

payload
object
required
trigger_count
integer<int64>
required

Total firings since creation or last expression/type change.

type
enum<string>
required

Schedule type. Only cron can be created or updated; once and interval only appear on schedules stored before that restriction.

Available options:
cron,
once,
interval
updated
string<date-time>
required
agent_tag
string

Pinned agent version. Omit to always run the agent's current active version.

display_name
string

Human-readable name of the schedule. Omitted for schedules created before display names were required.

last_triggered_at
string<date-time>

Timestamp of the most recent firing, if any.

updated_by_id
string

ID of the API key that last updated the schedule. Omitted until the schedule is updated.