I am working with the “Get List of Workspaces” API, which allows filtering workspaces using query parameters in the request body (JSON format). The API supports different query operators and operands, including:
AndOperator
NorOperator
FieldOperand
SearchWorkspacesOperand
FeatureFilter
PolicyFilter
I am looking for reference documentation or example queries demonstrating the correct structure for these queries.
If there are any official examples or best practices, I would appreciate any guidance or sample queries to clarify how to use these filters properly.
I feel your pain @DungLe !! The documentation for the Atlassian Cloud Admin APIs are appallingly sparse and vague, and contain absolutely no meaningful examples to use as a reference.
In the documentation for that endpoint, if you expand a parameter’s child properties, the expanded panel include the parent too, so you get an almost bottomless set of nested panels:
Also, if you try and scroll the page with any of those panels expanded, they all collapse and you have to start all over again!
Lastly, some of the English used is just bizarre: “Absence of nested variants makes this operator no-op”
No-op??
Personally, I tried every possible combination of encoding the operators / operands for the query parameter in the body as JSON, strings, JSON-in-strings etc etc, You name it, I tried it, all without success. I couldn’t get even FeatureFilter or PolicyFilter to work. After an hour of effort, I gave up.