FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
364 views 2 comments
by anonymous

The Teltonika RMS API refers to a "q" parameter for "search query" (eg: /devices)

What format does this search query string require? Can someone provide an example?

Eg: https://rms.teltonika-networks.com/api/devices?q=...

1 Answer

0 votes
by anonymous

Hello, 

Every API endpoint that has the 'q' parameter searches different values. A couple examples:

  • The '/devices' endpoint 'q' parameter can search by device name, description, serial number, MAC address, and RMS company name of the registered device.
  • The '/companies' endpoint 'q' parameter can search by company name, company ID, parent company name and parent company ID.
Format example for the '/devices' by searching for serial number: https://rms.teltonika-networks.com/api/devices?q=1234567890
Format example for the '/companies' by searching for company name: https://rms.teltonika-networks.com/api/companies?q=company123
Best answer
by anonymous
So it's just a string search over the parameters? Can the query be more specific, similar to an OData filter expression or something?
by anonymous
Keep in mind, the parameter search cannot find all available information. For example, the '/devices' endpoint 'q' parameter search will not find the device's temperature or signal strength information. And no, it currently cannot be as specific as OData filter expressions, it is currently limited to single string searches of specific parameters.