Sensor data
Bulk Display Data on Graph
Upload a batch of timestamped sensor readings to a dataset. Within the batch and on retries, identical timestamps and values count only once.
Headers
api-key- Your Key generated via API Credentials
dataset-id- The Dataset ID generated after creating a Graph and Dataset
Request fields
data_points- array (required, min_length=1) - List of data point objects
data_points[].sensor_value- string (required, max 255 characters) - The sensor value for this data point
data_points[].timestamp- string (required) - ISO 8601 formatted datetime for this data point
{
"data_points": [
{
"sensor_value": "23.5",
"timestamp": "2024-08-05T12:30:00Z"
},
{
"sensor_value": "24.1",
"timestamp": "2024-08-05T12:35:00Z"
},
{
"sensor_value": "23.8",
"timestamp": "2024-08-05T12:40:00Z"
}
]
}
Response fields
status- string - Success message confirming bulk data registration
count- integer - Number of new data points created. Duplicates of stored points, or repeats within the request, are skipped and not counted
{
"status": "Data registered successfully",
"count": 3
}
Response status options
200- Data has been created, or every data point was already stored (count is 0)
400- There is an issue with the request data
403- Permission Denied - Issue with Authorisation