Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

404 Error when calling REST API

Lukas Körber June 22, 2021

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
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 22, 2021

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

Lukas Körber June 22, 2021

Thanks a lot Christian!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events