6 years ago
filter on API v1 vs V2
I am relatively new to LM API and may just have a syntax problem.
This works: ..... '/website/websites?filter=id:4096'
This does not '/website/websites?filter=name:sitename.com'
...
@BCO assuming you have a website in LM with the exact name 'sitename.com', you should be on the right track. Though, in v2 of the API you should enclose filter values in double quotes (per https://www.logicmonitor.com/support/rest-api-developers-guide/), so try '/website/websites?filter=name:"sitename.com"'.