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.
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