You can find examples here:
https://docs.drone.io/api/builds/build_create/
Instead of passing query parameters in the url, you maybe be able to pass the query parameters in the http body as form-data. If not, we would accept a pull request to do so.