HUB, Rest API and regexp

Can I use regexp in the query parameter for additional filtering of the query (using the rest api)? For example, to filter user groups to exclude “team” groups.

0
1 comment
Official comment

Hi! 

I'm Sergey from the Hub team. Thank you for the message.

Regexp is not supported in the query parameter. Yet, the query parameter represents a Hub search query and it has the same syntax with the adjustment for HTML symbols escaping for URIs. So it may be helpful in constructing a query. 

In case of excluding groups or teams, we suggest that you just use the corresponding resources: api/rest/projectteams and api/rest/usergroups

Please let me know if any questions appear.

Please sign in to leave a comment.