How to filter/search in API

Solved

Hi all,

i have a problem to filter/search via the API using 

/devices/search (URL encoded ofc) or /devices

In both i always get that the filter is not set correctly but i don't get what to change.
In general i want to do following via API:

The relevant URL is then like: 
https://SOTISERVER.EXT/MobiControl/WebConsole/home/dashboard/devices?search=IsAgentOnline%20Equal%20%22FALSE%22%20AND%20LastAgentDisconnectTime%20NotWithIn%20%2230%20DAYS%22%20&groups=PATH&subGroups=true

I tried for example:

  • IsAgentOnline:false
    • As it can be found later in the data and in the example at least for the /devices (Property:Value)
  • "IsAgentOnline":false
  • IsAgentOnline=false
  • ...

But with no success, I always get "Parameter filter has invalid value IsAgentOnline." or similar.

I also did it with no issue without a filter set and then in the devices data provided for example "IsAgentOnline": false can be found but seem not to be able to be used that way.

We use version 2024.1.1

Can anyone tell me how to enter the filter correctly?

9 months ago
SOTI MobiControl
ANSWERS