Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to download via script from bitbucket downloads on private repo

Roland van Laar May 26, 2020

We have a private repository on bitbucket with downloads in the downloads section.

How can we download those files via a script.

1 answer

1 accepted

0 votes
Answer accepted
Roland van Laar May 26, 2020

There is an API for that:

https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/downloads/%7Bfilename%7D

 

Just remember to also put '-O' in the curl request, or else it won't download.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events