To create a schedule for a job, you will need the job ID of the job you want to schedule and the cron expression for the schedule. This example creates a schedule that runs the job every minute.
To update an existing schedule you will need the schedule config ID, the job ID, and the cron expression for the schedule. This example updates the schedule to run the job every 5 minutes.
To create a schedule for a pipeline, you will need the pipeline ID of the pipeline you want to schedule and the cron expression for the schedule. This example creates a schedule that runs the pipeline every minute.
This endpoint can be used to create multiple schedules for the pipeline.
To update an existing schedule you will need the schedule config ID, the pipeline ID, and the cron expression for the schedule. This example updates the schedule to run the pipeline every 5 minutes.
Getting Schedules
You can get schedules either by ID or all the schedules at one time.
The scheduler's /config endpoint can be used to retrieve all schedules created.
This will show all the schedules created both for job and pipelines.