Get latest data for a variable
POST/data/latest
Get last submitted data of specified variable for a set of nodes
Request
- application/json
Body
nodes string[]required
Possible values: >= 1
variable stringrequired
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
success boolean
error string
errorcode integer
data object[]
node string
value integer
timestamp integer
count integer
{
"success": true,
"error": "string",
"errorcode": 0,
"data": [
{
"node": "string",
"value": 0,
"timestamp": 0
}
],
"count": 0
}
Loading...