The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Dylan Landry
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

Comments for this post are closed

Community moderators have prevented the ability to post new 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
Deleted user
August 3, 2024

Hello @Dylan Landry 

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

Refer to BCLOUD-14000

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events