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'
Any thoughts on what is wrong with the second syntax?
BCO
Posted 6 years ago·Last reply 6 years ago
1 comment
Sarah Terry
·6 years ago@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"'.