Hi @ErikJ ,
Are you sending a POST request to the /api/2.1/jobs/run-now endpoint? It's important to use a POST request because this endpoint expects the parameters to be included in the request body as JSON, not as query parameters.
Also, your "params" seem malformed, with a missing comma after "job_id": 12312312 and an extra comma after "job_parameters". This might just be due to copy-pasting, but incorrect JSON formatting can cause the MALFORMED_REQUEST error you're seeing.
Here's how your JSON body should look:
{
"job_id" : 12312312,
"job_parameters":
{
"param1":"12",
"param2":"test"
}
}
Additional Notes:
- Ensure Correct HTTP Headers: Make sure you're setting the Content-Type header to application/json in your POST request.
- Validate Your JSON: It's a good idea to validate your JSON payload using an online JSON validator to catch any syntax errors.