Is this query possible? /api/v1/systems?fields=data.latitude

Hello,

Rather than getting all of the data field values for a system, I would like to filter some specific ones, such as dat.latitude. When I try to use ‘/api/v1/systems?fields=data.latitude’ I don’t get anything in the data field. Is it possible to request only certain datum in systems’ data?

Thanks for your help,
Mike

Hello Mike,

this API returns the device’s configuration not the data you can collect from the system.
To do so, you have to use the following API: /api/v1/systems/{uid}/data
where uid is the system’ uid you can get using the previous API.
you can filter using the ids parameter:
/api/v1/systems/{uid}/data?ids=data.latitude,data.longitude

See https://doc.airvantage.net/av/reference/cloud/API/API-System-v1/#API-Systemv1-Lastdatavalues

Robert