Skip to main content
POST
/
spark
/
jobs
/
{id}
Start a job run
import requests

url = "https://{FUSION HOST}/api/spark/jobs/{id}"

headers = {"Authorization": "Basic <encoded-value>"}

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

print(response.text)
{
  "state": "starting",
  "jobId": "c7f701edfd",
  "jobConfig": {
    "type": "custom_python_job",
    "id": "my-python-job",
    "script": "/compare_fusion_apis.py",
    "verboseReporting": false,
    "updates": [
      {
        "userId": "demo-user",
        "timestamp": "2025-12-03T22:17:23.651897283Z"
      },
      {
        "userId": "demo-user",
        "timestamp": "2025-12-03T22:17:23.653890793Z"
      }
    ]
  },
  "hostname": "10.64.19.46",
  "result": {
    "jobConfigId": "my-python-job",
    "jobRunId": "c7f701edfd"
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The name of the job configuration for which to start a new run.

Response

200 - */*

OK

state
enum<string>

The job run's current status.

Available options:
unknown,
idle,
starting,
running,
finishing,
cancelling,
finished,
cancelled,
error,
skipped
jobId
string

The unique job run ID.

jobConfig
object

The job's configuration details.

hostname
string

The host that ran the job.

result
object
startTime
string<date-time>

The job's start time, shown if the job has finished.

endTime
string<date-time>

The job's end time, shown if the job has finished.

duration
integer<int64>

The job's total run time, shown if the job has finished.