Kelemvor
2 years agoExpert
Can an API call filter for two values? 1 OR 2?
Hi, I’m trying to get a list of all websites in two different groups. I know I can just run two queries, but I’m trying to figure out if there’s a way to do an OR filter.
I’m using website/websites?filter=
I’ve tried groupId:123 OR 456, listing groupId twice, using commas, and some other things, but I just can’t get it to work.
Thanks.
Have you tried /website/websites?filter=groupId:123|456?
https://www.logicmonitor.com/support/rest-api-basic-filters#:~:text=Filter%20resources%20whose%20status%20is%C2%A0suspend%C2%A0or%20name%20is%C2%A0aaa%C2%A0or%C2%A0bbb%C2%A0or%C2%A0ccc