How to identify the mandatory fields of the create clusters API

guangyi
Contributor III

After several attempts I found some mandatory fields for cluster creation API: num_workers, spark_version, node_type_id. I’m not finding these fields directly against the API but via job cluster definition in the asset bundle yaml file.

I ask the ChatGPT the question and he gave almost the same answer and plus “cluster_name” field.

However, I cannot find the exact information on the API documentation either through “mandatory” or “required” keywords: https://docs.databricks.com/api/workspace/clusters/create.