Skip to main content
PUT
/
spark
/
configurations
/
{id}
Update a job
import requests

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

payload = {
    "id": "my-python-job",
    "script": "/compare_fusion_apis.py",
    "type": "custom_python_job",
    "verboseReporting": False
}
headers = {
    "Authorization": "Basic <encoded-value>",
    "Content-Type": "application/json"
}

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

print(response.text)
{
  "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"
    }
  ]
}

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 to modify.

Query Parameters

context
string

The app to which this job belongs.

Body

application/json

The job's configuration details.

id
string

The name of the job configuration.

Example:

"scripted_job_example"

sparkConfig
object

The job's configuration details. The configuration keys depend on the type of job. Use /spark/schema to see the configuration schemas for all job types.

Example:
{
"spark.cores.max": 2,
"spark.executor.memory": "1g"
}
type
string

The job type.

Response

200 - */*

OK

The job's configuration details.

id
string

The name of the job configuration.

Example:

"scripted_job_example"

sparkConfig
object

The job's configuration details. The configuration keys depend on the type of job. Use /spark/schema to see the configuration schemas for all job types.

Example:
{
"spark.cores.max": 2,
"spark.executor.memory": "1g"
}
type
string

The job type.