Query for a file in downloads using REST API

snobb
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 24, 2018

The documentation for the downloads endpoints is scarce and it's not clear if it's possible to query based on filename, sort by date, etc.

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

I've tried the filters from the page below, but nothing seems to work:

https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering

Is there a way to get a list of files (or the most recent file) matching the pattern. Eg. the stored pipeline artifacts filenames contain the name of a branch (eg. staging, qa, etc). I cannot use web-hooks because the servers won't be accessible from bitbucket. The only option is to query if there are new artifacts to download.

Is it possible to query for the most recent file matching a pattern in downloads (like described in filtering page or otherwise)?

Thanks

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events