Update agent schedule
Edit an agent schedule. Omitted fields are left unchanged. Changing the cadence recomputes nextRunAt; paused: true stops firing (stamps pausedAt), paused: false resumes and recomputes nextRunAt from now so a long-paused schedule never replays missed runs.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Team (workspace) id (UUID). Discover ids via the list teams endpoint or the agent context.
Agent schedule id (UUID), as returned by the list/create agent-schedules endpoints.
Body
Display name for the automation, 1-120 characters.
1 - 120The instruction the scheduled run starts from - the prompt handed to the agent.
1 - 20000Five-field cron expression (minute hour day-of-month month day-of-week), evaluated in UTC. Invalid expressions are rejected 400.
1 - 100"0 9 * * *"
"*/30 * * * 1-5"
Per-run credit ceiling in decimillicents. A scheduled run stops (incomplete, surfaced in the inbox) when it reaches this spend.
Optional daily credit ceiling in decimillicents across all of this schedule's runs (UTC day). The sweeper skips firing once reached; send null for no daily ceiling.
x > 0Skip firing while this many (or more) of the schedule's runs sit unreviewed in the inbox, 1-100 (default 10). Keeps a broken automation from flooding the queue.
1 <= x <= 100true pauses the schedule (stamps pausedAt), false resumes it. Omit to leave the pause state unchanged.
Response
AgentSchedule
a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Display name for the automation, 1-120 characters.
1 - 120The instruction the scheduled run starts from - the prompt handed to the agent.
1 - 20000Five-field cron expression (minute hour day-of-month month day-of-week), evaluated in UTC. Invalid expressions are rejected 400.
1 - 100"0 9 * * *"
"*/30 * * * 1-5"
When the schedule next fires (ISO-8601 UTC).
When the sweeper last fired this schedule (ISO-8601 UTC); null before the first run.
Per-run credit ceiling in decimillicents. A scheduled run stops (incomplete, surfaced in the inbox) when it reaches this spend.
Optional daily credit ceiling in decimillicents across all of this schedule's runs (UTC day). The sweeper skips firing once reached; send null for no daily ceiling.
x > 0Skip firing while this many (or more) of the schedule's runs sit unreviewed in the inbox, 1-100 (default 10). Keeps a broken automation from flooding the queue.
1 <= x <= 100When the schedule was paused (ISO-8601 UTC); null while active. A paused schedule never fires.
a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$