#4220 API url for new pull request does not work
Closed: Invalid 5 years ago by pingou. Opened 5 years ago by lenkaseg.

When I try to create a new pull request via API, I get this error:

Invalid or expired token. Please visit https://pagure.io/settings#api-keys to get or renew your API token.

I'm using this url to POST the pull request:

https://pagure.io/api/0/carrot/pull-request/new

And I'm trying to pass these parameters:
--repo carrot
--title fruits
--branch_to master
--branch_from readme

I tried using both user and project API token an none seems to work.


I believe we figured this one out in person at DevConf.

There is still some work to be done to improve this API endpoint, but we can track this in other tickets.

Thanks for your report @lenkaseg :)

Metadata Update from @pingou:
- Issue close_status updated to: Invalid
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata