Update a schedule
Partially update a schedule.
Fields omitted from the request body keep their current values.
Changing cron_expression or timezone immediately reschedules the
APScheduler job. Setting enable=False removes the job from the
scheduler without deleting the record.
Args:
schedule_id (str): ID of the schedule to update.
body (UpdateScheduleRequest): Fields to update.
user_id (str): Authenticated user ID.
storage (StorageBase): Storage instance.
scheduler (SchedulerManager): Scheduler manager.
Returns:
ScheduleRecord:
The updated schedule record.
Raises:
HTTPException: 404 if the schedule does not exist.
Documentation Index
Fetch the complete documentation index at: https://docs.agentscope.io/llms.txt
Use this file to discover all available pages before exploring further.
Headers
Caller's user ID. Temporary header-based identity; will be replaced by JWT auth.
Path Parameters
Body
Request body for partially updating a schedule.
Omit any field to keep its current value. Changing cron_expression
or timezone will reschedule the APScheduler job immediately.
Changing enable to False removes the job from the scheduler
without deleting the record; setting it back to True re-registers it.
New display name.
New description.
New cron expression. Reschedules the task immediately.
New IANA timezone name.
Set to False to pause the schedule without deleting it.
Change whether executions share session context.
New permission mode.
default, accept_edits, explore, bypass, dont_ask Response
Successful Response