Forums

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

BitBuket API Pipelines query params

Daniel Ostrovsky
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 1, 2018

Hi all. 

I'm trying to create a monitoring app for my pipelines builds. 
Using this endpoint /repositories/{username}/{repo_slug}/pipelines/
According to documentation and many tries, there is no way to get latest builds or sorted list... 

Any help, please.

1 answer

1 vote
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 29, 2018

Hello,

You can sort on latest builds with the "sort=created_on" query parameter.

For example:

https://api.bitbucket.org/2.0/repositories/{username}/{repository}/pipelines/?page=1&pagelen=10&sort=-created_on

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events