Using the below endpoint:
https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/deployments
How do I limit the deployment list to contain only those deployments created_on after 2025-05-01?
Currently the api seems to return a random list of deployments for a given repo.
@Derek Kruszewski I checked and as you noted, that REST API end-point doesn't provide filtering capabilities. Also, there is no alternative endpoint you could use.
So, the best you can do is getting all deployments (which can be in random order) and filter (or sort, then filter) the list for yourself.
Dang. This means my requests to the bitbucket api will get more and more numerous as the number of deployments increases per repo. How unfortunate. Thanks for checking.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.