How can I submit a one-time Spark job to run on a new cluster using the Databricks Jobs API?
To submit a one-time Spark job to run on a new cluster using the Databricks Jobs API, you can use the `2.0/jobs/runs/submit` endpoint. Here's an example of how to structure the JSON request body:

```json
{
  "run_name": "my spark task",
  "new_cluster": {
    "spark_version": "7.3.x-scala2.12",
    "node_type_id": "r3.xlarge",
    "aws_attributes": {
      "availability": "ON_DEMAND"
    },
    "num_workers": 10
  },
  "libraries": [
    {
      "jar": "dbfs:/my-jar.jar"
    },
    {
      "maven": {
        "coordinates": "org.jsoup:jsoup:1.7.2"
      }
    }
  ],
  "spark_jar_task": {
    "main_class_name": "com.databricks.ComputeModels"
  }
}
```

Replace the placeholders with appropriate values for your use case. The `new_cluster` field specifies the configuration for the new cluster, and the `spark_jar_task` field specifies the main class name for the Spark job. You can also include a list of libraries to be installed on the cluster in the `libraries` field.

After submitting the request, you will receive a response with the `run_id` for the newly submitted run. You can use this `run_id` to check the run state using the `jobs/runs/get` API.

For more information, please refer to the Databricks Jobs API documentation.