Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,299,335
Community Members
 
Community Events
165
Community Groups

App password don't work for all API endpoints

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

2 votes
Answer accepted
seanaty Atlassian Team Sep 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.

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!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,239 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you