agents
Create a schedule
Changed onCreates a schedule of an agent: each occurrence of cron_expression, read in time_zone, starts a run of the agent with trigger scheduled and the schedule's id, built from run_template as POST /runs builds a saved agent's run. A cron expression or time zone that doesn't parse, an expression that never fires, a revision of another agent, an agent with no revision, or a schedule with no occurrence before its end_at is 400.
post/agents/{agent_id}/schedules
Request
- Base URL/api/v1 (relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header X-Axilio-Api-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
agent_idstring uuid required
The agent's id.
Request body
Example request
{
"$schema": "/api/v1/AgentScheduleCreateRequest.json"
}Response
Created
Example response
{
"$schema": "/api/v1/AgentSchedule.json"
}Changes
- info
endpoint added
- info