Databricks jobs create API throws unexpected error

Mohit_m
Databricks Employee
Databricks Employee

Databricks jobs create API throws unexpected error

Error response :

{

"error_code": "INVALID_PARAMETER_VALUE",

"message": "Cluster validation error: Missing required field: settings.cluster_spec.new_cluster.size"

}

Any idea on this?

Mohit_m
Databricks Employee
Databricks Employee

Could you please specify num_workers in the json body and try API again.

Also, another recommendation can be configuring what you want in UI, and then pressing “JSON” button that should show corresponding JSON which you can use for API

View solution in original post