title: Jenkins: How can I make a remotely submitted job use default parameter values?
body: <p>I am triggering a parametrized Jenkins job remotely using the <a href="https://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API" rel="noreferrer">Remote Access API</a> like this:</p>
  
  <pre><code>url=http://&lt;ci-host&gt;/job/&lt;jobname&gt;/build
  json="{\"parameter\": [{\"name\": \"A_NAME\", \"value\": \"a_value\"}]}"
  curl -X POST $url -d token=zorn --data-urlencode json="$json"
  </code></pre>
  
  <p>I want Jenkins to use the configured default value for one of my parameters, but it seems to be expecting values for all of the parameters.</p>
  
  <p>If I leave out a parameter, the job sees it as an empty string.</p>
  
  <p>Is there a way to make it use the configured default value for a parameter?</p>
  
  <p>EDIT:
  The solution (as per Daniel S.) was to use <code>buildWithParameters</code> as follows:</p>
  
  <pre><code>url=http://&lt;ci-host&gt;/job/&lt;jobname&gt;/buildWithParameters
  curl -s -X POST $url
  </code></pre>
  
  <p>ANOTHER EDIT:
  But now the problem is that <code>buildWithParameters</code> does not work on a job with no parameters. So it cannot be used for a generic script to start all my jobs.</p>