Retrieve the latest value of a specific data stream.
GET/api/v1/orgs/{orgId}/devices/{deviceId}/data-streams/{dataStreamId}/values/latest
Retrieve latest value of assigned dataStreamId for the device within the system-defined retention period (default: 60 minutes).
Parameters
deviceId(string, required): Unique ID of the device. Example:74fe488d5d35dataStreamId(Guid, required): Unique ID of the data stream. Example:3a217ee3-fb2c-617b-6ff6-7257537afade
Responses
200 OK: Returns the latest data-stream value including value object, value type, timestamp, and data stream name.204 No Content: No latest data available for the specified data stream.404 Not Found: Data stream not found.
Security
- This API requires authentication.
Request
Responses
- 200
- 204
- 404
Returns the latest data-stream value including value object, value type, timestamp, and data stream name.
No latest data available for the specified data stream.
Data stream not found.