I need to call a Jenkins job using its API through Postman. This job requires parameters (HOST, VERBOSITY and PMSP).
Auth works using Jenkins token and header Content-type:application/json is used.
- I tried to call the endpoint https://jenkins_server/job/job_name/build/api/json adding the following body to the request but the result is Nothing is submitted, and the job doesn't run. 
- I tried to call the endpoint https://jenkins_server/job/job_name/buildWithParameters/api/json adding the same body. I get 201 Created (job is running) but no parameters are given to the job. 
{
        "parameter": [
            {
                "name": "HOSTS",
                "value": "[linux]\n1.2.3.4"
            },
            {
                "name": "VERBOSITY",
                "value": "vv"
            },
            {
                "name": "SANS_PMSP",
                "value": true
            }
        ]
}
Is my JSON well constructed ? Which endpoint do I need to call ?
 
    

