Hello,
I've a requirement to retrieve all organizations under my account. I tried /search API with the help of ?query for this. However, in query I need to try all the alphabets from 'a' to 'z' one by one. To avoid this, is there any other approach of using any wildcards like '*' or '%' or '.' in query so that in one request itself I will get all my organizations (teams).
Similarly, I need to retrieve all my members in one shot, either using /search?query or /search/members?query
Please help.
Thanks for the reply.
Let me reframe the question.
I need an endpoint to retrieve all members using single search query. Similarly, I need an endpoint to retrieve all organizations using single search query.
Please help.
@Krishna Prasad PS The first endpoint above gives you all organizations your account has access to.
There's no sense in which you can "get all members in a single query" because members are either members of a board or members of an organization.
The only way you can get "get all members" of something that is not either a board or an organization is if you have an enterprise plan:
https://developers.trello.com/reference/#enterprisesidmembers
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.
@Krishna Prasad PS check out the members/organizations endpoint:
https://developers.trello.com/reference/#membersidorganizations
You can then loop through these orgs to fetch all members in each:
https://developers.trello.com/reference/#organizationsidmembers
In the API "teams" are referred to as "organizations", I guess it's a terminology relic from when the API was initially created, and they later modified the interface to say "Teams" but didn't want to upset the apple cart by also modifying the endpoint, nor did they wish to have an endpoint "teams" as an alias for "organizations" :) Anyway, just a little peculiarity in the terminology
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reply.
Let me reframe the question.
I need an endpoint to retrieve all members using single search query. Similarly, I need an endpoint to retrieve all organizations using single search query. In other words, the search query needs to have some wild card which indicates all members or organizations.
Please help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.