get a last updated event of devices
GET
/partners/companies/{company_name}/devices/eventupdatesPartner gets a last changed event of all company's devices. An empty response would be returned, if nothing changed
Request
Path Params
company_name
string
required
Name of company in RoscoLive
Example:
Company Name
Query Params
inactive
boolean
optional
A flag for including inactive devices in the response if set to true
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
meta
object
required
Request metadata object
code
integer
required
HTTP status code returned by server
response
object
required
Contains response data
devices
array [object {11}]
required
result
string
required
"OK" if request successful, otherwise "Fail"
Example
{
"meta": {
"code": 200
},
"response": {
"devices": [
{
"device_id": "12345",
"driver_id": "12345",
"driver_name": "Keith Lakin",
"events": {
"endtime": "2022-10-18 18:47:19",
"id": "1909786",
"name": "InputSensor9",
"starttime": "2022-10-18 18:47:09"
},
"general_status": "sleep",
"gps": {
"dir": "84",
"dst": "2756",
"key": false,
"lan": "-84.9099",
"lon": "15.5478",
"spd": "40",
"timestamp": "2024-01-01 17:32:41"
},
"ignition": {
"state": true,
"ts": "2024-05-04 23:57:01"
},
"modem_rssi": "-51",
"online": false,
"sleep": 0,
"vehicle_name": "Truck 1"
}
]
},
"result": "OK"
}
Last modified: 6 months ago