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,293,534
Community Members
 
Community Events
165
Community Groups

404 Error when calling REST API

Hi

when trying to call the REST API of Bitbucket-Server with the following URL

<host>/rest/api/1.0/projects/<project-key>/repos/<repo-key>/raw/<path-to-file>?at=develop

to retrieve a raw .py file I receive a 404 Error. Currently I am using Bitbucket Server v4.9.1.

Is this functionality not yet included in the version I am using or is there a workaround?

 

Would be awesome if anyone could help me here, thank you!

1 answer

1 accepted

0 votes
Answer accepted

Hi Lukas,

Yes indeed, that REST API endpoint does not yet exist in version 4.9.1, which is a very old version of Bitbucket Server. You can find the REST API reference for that version at https://docs.atlassian.com/bitbucket-server/rest/4.9.1/bitbucket-rest.html.

Cheers,

Christian

Premier Support Engineer

Atlassian

Thanks a lot Christian!

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,096 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