Lesstep
Jenkins 2.580.1 · remote API · Checked October 24, 2026

Jenkins: "HTTP ERROR 400 Nothing is submitted" / "This page expects a form submission"

The job has parameters, so its /build address expects the form that the job's web page sends, not a plain POST. Jenkins refuses with HTTP 400. Send the request to /buildWithParameters instead, with the parameters as query or form fields; any you leave out take their default values.

The whole answer

What Jenkins 2.580.1 answered on October 24, 2026, signed in with an API token, for a job with one string parameter:

curl -X POST -u '<user>:<api-token>' 'https://jenkins.example.com/job/<job>/build'

HTTP 400
HTTP ERROR 400 Nothing is submitted
URI:/job/<job>/build
STATUS:400
MESSAGE:Nothing is submitted
SERVLET:Stapler

Start it with buildWithParameters

curl -X POST -u '<user>:<api-token>' \
  'https://jenkins.example.com/job/<job>/buildWithParameters?GREETING=hi'

HTTP 201
Location: https://jenkins.example.com/queue/item/<n>/

With the Jenkins CLI, -p passes a parameter, -s waits for the build and -v prints its console:

java -jar jenkins-cli.jar -s https://jenkins.example.com/ -http -auth @auth.txt \
  build <job> -p GREETING=hi -s -v

auth.txt holds <user>:<api-token>.

The opposite: "… is not parameterized"

/buildWithParameters on a job without parameters got HTTP 400 "<job> is not parameterized", and the CLI said "ERROR: <job> is not parameterized but the -p option was specified." Use /build for those jobs. A script that starts many jobs can read /job/<job>/api/json first: a job with parameters lists them under ParametersDefinitionProperty in property.

Build with parameters from IntelliJ IDEA

Pipeline Inbox for Jenkins, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, starts a job with parameters through buildWithParameters and one without through /build. Its Build Now dialog has a field for each parameter (text, choice, checkbox, password) with the defaults filled in, and can remember the values per job (never passwords). Rebuild repeats a build with the same parameters. Building, rebuilding, stopping and input steps are Pro (US$1.50 a month, with a 30-day trial); the build list and console logs are free.

Jenkins® is a registered trademark of LF Charities Inc.; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by the Jenkins project or JetBrains.

More: "Waiting for next available executor" · Jenkins plugins for IntelliJ IDEA compared · 日本語