How to trigger job schedules via cron script / programmatically?

Running jobs:

You can run jobs by sending a POST request and specifying either the job IDs or job names in a comma separated format. Please note that if you send both job IDs and job names, only job IDs will take effect.

Below is an example of running job IDs 151 and 152 using curl

curl -s \
-X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: apikey 4IV08koxLCRSVpRptCMt" \
-d "schedule_ids" = "150,151" 127.0.0.1:8000 /arc/jobs/api/run/

Below is the curl command for running jobs named “test1” and “test2”

curl -s \
-X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: apikey 4IV08koxLCRSVpRptCMt" \
-d "schedule_names" = "test1,test2" 127.0.0.1:8000 /arc/jobs/api/run/