I have figured out how to trigger a build using the rest api (example below) and have figured out how to add parameters to a build project. However I cannot find an example of triggering a build via the rest api while passing in parameters.
This is what I am using to trigger a build using curl:
curl -X POST -u apiuser:apipassword -d '<build><buildType id="SpringPetclinic_Build"/></build>' http://localhost:8111/httpAuth/app/rest/buildQueue --header "Content-Type: application/xml" -H "Accept: application/json"
Do I pass the parameters as part of the POST data?