Parameterize travis builds using API v3 with query params

Custom query params for post request for triggering the build.

parameterize Travis builds similar to Jenkins

similar to below

Jenkins has that provision

https://wiki.jenkins.io/display/JENKINS/Parameterized+Build

Whenever I do this,

https://travis..com/api/v3/repo/1/requests?pactConsumerTags=${pactbroker.consumerVersionTags}

I am getting this response

@warnings”: [
{
@type”: “warning”,
“message”: “query parameter pactConsumerTags not safelisted, ignored”,
“warning_type”: “ignored_parameter”,
“parameter”: “pactConsumerTags”
}
]

Can some one help on the same ?

In my case was missing the header:
“Content-Type application/json”