Troubleshooting why API Pipeline Parameters Do Not Work

Problem

If you find that when passing in API parameters while triggering a new pipeline the parameters do not appear to be applying to your build, make sure to pass in the content-type header for JSON.

Solution

An example of how to do this can be found below:

Content-Type: application/json

Outcome

The API parameters should now be added successfully when triggering the pipeline

Additional Resouces

See the API v2 documentation for details
https://circleci.com/docs/api/v2/#trigger-a-new-pipeline

Was this article helpful?
0 out of 6 found this helpful

Comments

0 comments

Article is closed for comments.