I'm trying to get the list of pull requests for a given git commit in Bitbucket. I can successfully curl both the commit, and the list of pull requests:
curl -u $USER:$APP_TOKEN https://api.bitbucket.org/2.0/repositories/meekrosoft/demo_bitbucket_pipe/commit/d7f5d5b11b268a70684f8683b411caed57da9d34/
curl -u $USER:$APP_TOKEN https://api.bitbucket.org/2.0/repositories/meekrosoft/demo_bitbucket_pipe/pullrequests
However when I try to get the pull requests for a commit that has an associated pull request I get a 400 error:
curl -u $USER:$APP_TOKEN https://api.bitbucket.org/2.0/repositories/meekrosoft-ztl/test_pipe/commit/d7f5d5b11b268a70684f8683b411caed57da9d34/pullrequests
{"error": "Invalid or unknown installation"}%