I used bitbucket API token to call conflicts endpoint, but it returns 403, I have assigned all scope in the bitbucket list but still not working.
It works well for other bitbucket endpoints
Is it a bug? or I need other way to call conflicts endpoint?
Hi @Gia Gao
Welcome to the community.
To use access tokens, you will need to use it as an authorization bearer header instead of basic authorization.
Here's an example curl command:
curl --request GET \ --url 'https://api.bitbucket.org/2.0/repositories/{workspace}/{repository}' \ --header 'Authorization: Bearer <repository_access_token>' \ --header 'Accept: application/json'
Regards,
Mark C
Hi Mark, thanks for the reply.
I have tried with bearer type, but still not working, and I am not using the repository access token, I am using the API token for calling the bitbucket API, I assume they are different things.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gia,
I have clicked the Request Assistance button so that Atlassian support can look into this issue for you.
I hope this helps.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.