Skip to main content
POST
/
job-config
/
jobs
/
{resource}
/
actions
Start, pause, or abort a job
import requests

url = "https://{FUSION_HOST}/job-config/jobs/{resource}/actions"

payload = {
    "action": "start",
    "comment": "Start the job"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "resource": "task:refresh-autocomplete-blob2",
  "action": "start",
  "accepted": true,
  "message": "Job has been started"
}

Path Parameters

resource
string
required

The job ID, prefixed with the job type, as in spark:my-spark-job.

Query Parameters

context
string

The app to which a job belongs, formatted as app:APP_NAME.

Body

application/json

One of: start or abort

action
enum<string>
Available options:
start,
pause,
abort
comment
string

Response

200 - application/json

OK

resource
string
action
enum<string>
Available options:
start,
pause,
abort
accepted
boolean
message
string