title: Databricks Job API create job with single node cluster
body: <p>I am trying to figure out why I get the following error, when I use the Databricks Job API.</p>
  <blockquote>
  <p>{
  &quot;error_code&quot;: &quot;INVALID_PARAMETER_VALUE&quot;,
  &quot;message&quot;: &quot;Cluster validation error: Missing required field: settings.cluster_spec.new_cluster.size&quot;
  }</p>
  </blockquote>
  <p>What I did:</p>
  <ol>
  <li>I created a Job running on a single node cluster using the Databricks UI.</li>
  <li>I copy&amp; pasted the job config json from the UI.</li>
  <li>I deleted my job and tried to recreate it by sending a POST using the Job API with the copied json that looks like this:</li>
  </ol>
  <pre><code>{
      &quot;new_cluster&quot;: {
          &quot;spark_version&quot;: &quot;7.5.x-scala2.12&quot;,
          &quot;spark_conf&quot;: {
              &quot;spark.master&quot;: &quot;local[*]&quot;,
              &quot;spark.databricks.cluster.profile&quot;: &quot;singleNode&quot;
          },
          &quot;azure_attributes&quot;: {
              &quot;availability&quot;: &quot;ON_DEMAND_AZURE&quot;,
              &quot;first_on_demand&quot;: 1,
              &quot;spot_bid_max_price&quot;: -1
          },
          &quot;node_type_id&quot;: &quot;Standard_DS3_v2&quot;,
          &quot;driver_node_type_id&quot;: &quot;Standard_DS3_v2&quot;,
          &quot;custom_tags&quot;: {
              &quot;ResourceClass&quot;: &quot;SingleNode&quot;
          },
          &quot;enable_elastic_disk&quot;: true
      },
      &quot;libraries&quot;: [
          {
              &quot;pypi&quot;: {
                  &quot;package&quot;: &quot;koalas==1.5.0&quot;
              }
          }
      ],
      &quot;notebook_task&quot;: {
          &quot;notebook_path&quot;: &quot;/pathtoNotebook/TheNotebook&quot;,
          &quot;base_parameters&quot;: {
              &quot;param1&quot;: &quot;test&quot;
             
          }
      },
      &quot;email_notifications&quot;: {},
      &quot;name&quot;: &quot; jobName&quot;,
      &quot;max_concurrent_runs&quot;: 1
  }
  </code></pre>
  <p>The documentation of the API does not help (can't find anything about settings.cluster_spec.new_cluster.size). The json is copied from the UI, so I guess it should be correct.</p>
  <p>Thanks for your help.</p>