Adding Jobs to Schedules via the API
The OpCon API allows users to programmatically add jobs to schedules, enabling dynamic automation and integration with external systems. This guide provides a step-by-step overview of how to use the API to add jobs to schedules, including required fields and example requests. Required InformationTo add a job to a schedule using the API, you will need the following information:Schedule name or ID Job name or ID Frequency and instance details Any instance properties or overrides Authentication token with appropriate permissionsExample RequestBelow is an example of a POST request to the /scheduleactions endpoint to add a job to a schedule:POST /api/scheduleactions HTTP/1.1Host: your-opcon-serverAuthorization: Token your-auth-tokenContent-Type: application/json{ "scheduleName": "DailyProcessing", "action": "AddJob", "jobName": "DataImportJob", "frequency": "Daily", "instanceProperties": [ { "name": "InputFile", "value": "data_2024_01_01.csv" } ]}TipsEnsure the job and