Create a new schedule
Create a new schedule and register it with the scheduler.
Args:
body (CreateScheduleRequest): Schedule configuration.
user_id (str): Authenticated user ID.
storage (StorageBase): Storage instance.
scheduler (SchedulerManager): Scheduler manager.
Returns:
CreateScheduleResponse:
The ID of the newly created schedule.
Raises:
HTTPException: 404 if the specified agent 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.
Body
Request body for creating a new schedule.
Display name of the schedule.
Standard 5-field cron expression, e.g. '0 9 * * 1-5'.
Agent to run when the schedule fires.
Model configuration for the auto-created session.
Optional description.
IANA timezone name, e.g. 'America/New_York' or 'Asia/Shanghai'.
Whether the schedule is active immediately after creation.
If True, consecutive executions share the same session context.
Permission level for the agent during scheduled execution.
default, accept_edits, explore, bypass, dont_ask Response
Successful Response
Response body after creating a schedule.
Server-assigned schedule identifier.