Update Schedule
Update a schedule's cadence, timezone, enabled state, or window.
Update a schedule's cadence, timezone, enabled state, or window.
Changes to cron_expr or timezone recompute next_fire_at from now, so an
updated schedule never immediately back-fires for a missed time in the past.
Re-enabling a paused schedule (enabled=true) also recomputes next_fire_at
from now and clears any automatic pause, so a schedule Levain paused on a limit
retries at once. Set skip_if_active_within_minutes to 0 to clear the
activity window (fire on every match).
A schedule that runs as a person is theirs to change: anyone else may only
switch it off (enabled: false on its own) or delete it; other edits
return 403.
Authorization
HTTPBearer In: header
Path Parameters
uuidHeader Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PATCH "https://api.levainlabs.com/api/v1/schedules/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{
"id": "string",
"agent_id": "string",
"agent_version_id": "string",
"cron_expr": "string",
"timezone": "string",
"prompt": "string",
"initial_state": {},
"enabled": true,
"paused_reason": "string",
"resume_at": "string",
"skip_if_active_within_minutes": 0,
"run_as_user": {
"id": "string",
"name": "string",
"email": "string"
},
"next_fire_at": "string",
"last_fired_at": "string",
"last_run_id": "string",
"created_at": "string"
}