Python
import requests url = "https://{FUSION_HOST}/job-config/jobs/{resource}/schedule" payload = { "resource": "<string>", "enabled": True, "triggers": [ { "enabled": True, "type": "<string>", "expression": "<string>" } ], "default": True } headers = {"Content-Type": "application/json"} response = requests.put(url, json=payload, headers=headers) print(response.text)
{ "resource": "task:refresh-autocomplete", "enabled": true, "triggers": [ { "type": "interval", "enabled": true, "interval": 2, "timeUnit": "hour" } ], "default": false }
Configure the schedule for the specified job.
The job ID, prefixed with the job type, as in spark:my-spark-job.
spark:my-spark-job
Validate that the job config exists.
The app to which a job belongs, formatted as app:APP_NAME.
app:APP_NAME
JSON-formatted configuration values
Show child attributes
OK
Was this page helpful?