I am trying to use Bitbucket server rest api in python to get an archive of a certain commit. I am following the rest api documentation as below.
/REST/API/1.0/PROJECTS/{PROJECTKEY}/REPOS/{REPOSITORYSLUG}/ARCHIVE?AT&FILENAME&FORMAT&PATH&PREFIX
My python code to implement above api is as below.
headers = {'Content-Type': 'application/json'}
r = requests.get(url, auth=('username', 'password'), headers=headers)
print(r.status_code)
404
I am getting 404 status code. Any help would be highly appreciated.
Regards,
Kailash