Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

how do I query endpoints that don't suport query language?

Dylan Landry
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!
August 3, 2024

 

The bitbucket API docs describe a querying language and mention that only some endpoints support it. I think I just spent an hour trying to use the pipelines/ endpoint with that query language. I'm starting to think it doesn't support it.

I looked at the linked open api spec and it doesn't include query parameters for the list pipelines endpoint. If the pipelines endpoint doesn't support the query language, how am I supposed to learn how to query it?

EDIT: I found this related question without an answer: How can I see all parameters for a REST API resource?

2 answers

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 6, 2024

Hi Dylan and welcome to the community.

For API endpoints that don't support filtering, you can get the response from the API call and then use another tool that filters JSON data to filter it.

jq is an example of such a tool:

Kind regards,
Theodora

0 votes
David Bakkers
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 3, 2024

Hello @Dylan Landry 

The pipelines endpoint of Bitbucket Cloud currently doesn't support filtering.

Refer to BCLOUD-14000

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events