Returns the ordered list of presence intervals for a single device during the specified time range, including periods where the device was not inside any site. Each record spans from the first time the device was seen in a given state (in a site/zone, or outside all sites) until the first time it was seen in a different state. Records where the device was not in any site have site_id, site_name, zone_id, and zone_name all set to null. enter_time may precede begin if the device was already in that state when the window opened; exit_time may follow end if the device was still in that state when the window closed, and is null only when the device is still there at query time. Leaving a zone while remaining in the site produces a new record with a null zone_id. At least two of begin, end, and duration must be supplied.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
400Invalid parameters — invalid time range, or begin older than the allowed maximum.
401Missing or invalid authorization token.
404Device not found, or access denied.
500Internal server error.
