Hi,
I've created an API token with the following scopes:
Read
read:account
read:me
read:repository:bitbucket
read:pullrequest:bitbucket
read:project:bitbucket
read:pipeline:bitbucket
read:permission:bitbucket
read:package:bitbucket
read:issue:bitbucket
read:gpg-key:bitbucket
And trying to access this endpoint:
curl --request GET \
--url 'https://api.bitbucket.org/2.0/repositories/mycompany/myrepo/pullrequests/742/diff' \
--header 'Authorization: Bearer XXX'
I'm getting this error:
{"type": "error", "error": {"message": "Token is invalid, expired, or not supported for this endpoint."}}
Any idea what might be wrong?
Thanks.