The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

App password don't work for all API endpoints

Jannet van Dijk
September 27, 2021

Hello,

I use the API in combination with the app password. When i call the following url I get a response:

https://api.bitbucket.org/2.0/repositories/{MY-WORKSPACE}/{MY_REPO}/commits/?include=master

But when I call this url, I get a http_status 403. Does anyone know why?

https://api.bitbucket.org/2.0/repositories/{MY-WORKSPACE}/{MY_REPO}/diffstat/87d4d49

 

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Answer accepted
seanaty
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 27, 2021

Both of these APIs should require the same level of permission. 403 is the response that you'd get if passed in no authorization whatsoever (for a private repository). It is indeed odd that one of them would 200 while the other returns 403. I would check script for any typos.

Jannet van Dijk
September 28, 2021

Thanks for the confirmation! Seems to have something todo with my code or request in PHP. When I run the request in postman with the same authentication method the request succeed. So will dive in to my code and figure this one out :)

Thanks for the quick response!

TAGS
AUG Leaders

Atlassian Community Events