Group Location
Explore Plans
Mobile menu Close menu
AT&T M2XAT&T M2X

History of device locations

This query returns a list of every time the location of a device is updated.

About this query

Triggers, queries, and actions are the building blocks of Applets. Triggers tell an Applet to start, queries ask a question, and actions are its end result.

Developer info

Description
This query returns a list of every time the location of a device is updated.
API endpoint slug
attm2x.history_of_device_locations
Runtime method
performQuery("attm2x.history_of_device_locations")

Query fields

Device ID Text input > Other

Label
Which device?
Helper text
The device ID can be found on the Device Details page of your M2X account. Leave this field blank for firing this trigger when any device updates its location.
Slug
device_id
Required
true
Can have default value
true

Ingredients

Device IDThe ID of the device whose location has been updated.

Slug
device_id
Filter code
Attm2x.historyOfDeviceLocations.DeviceId
Type
String
Example
65b89448f954f49e42b746d73b385cbb

Device nameThe name of the device whose location has been updated.

Slug
device_name
Filter code
Attm2x.historyOfDeviceLocations.DeviceName
Type
String
Example
Main Engine

Device serialThe serial number of the device whose location has been updated.

Slug
device_serial
Filter code
Attm2x.historyOfDeviceLocations.DeviceSerial
Type
String
Example
ABCD1234567890

LatitudeThe latitude value of the new location.

Slug
latitude
Filter code
Attm2x.historyOfDeviceLocations.Latitude
Type
String
Example
40.77177

LongitudeThe longitude value of the new location.

Slug
longitude
Filter code
Attm2x.historyOfDeviceLocations.Longitude
Type
String
Example
-73.97352

ElevationThe elevation of the new location.

Slug
elevation
Filter code
Attm2x.historyOfDeviceLocations.Elevation
Type
String
Example
10

TimestampDate and time location has been updated.

Slug
timestamp
Filter code
Attm2x.historyOfDeviceLocations.Timestamp
Type
Date with time (ISO8601)
Example
2020-07-08T04:17:06.000+05:00