The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I have a json file stored in BitBucket. My goal is to view the json file as a raw using Postman or invoking an HTTPS request.
https://bitbucket.org/<repo>/<project>/raw/master/config_test.json?response=json
The URL above works fine when I view it from the browser, but now when I call it from postman. I even tried the api.bitbucket.org/2.0/repositories but still not working.
I'm getting this error
Requesting in your browser works because it is likely using your session cookie to authenticate.
For API authentication, here are some ideas of what to check.
1. Definitely use api.bitbucket.org/2.0/...
2. The app password needs your username still, it is not a bearer token. e.g. you need to use curl -u my-username:my-app-password https://api.bitbucket.org/2.0/repositories/...
This is the API you'll want to use to get a file: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-source/#api-repositories-workspace-repo-slug-src-commit-path-get as the first "raw" URL you posted isn't an API resource.
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...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.