Sensor data
Display Data on Graph
This endpoint allows you to display data on a graph. Rate limited to one request every 5 seconds per dataset.
Headers
api-key- Your Key generated via API Credentials
dataset-id- The Dataset ID generated after creating a Graph and Dataset
Request fields
sensor_value- string (required) - The sensor value to be recorded
timestamp- string (optional) - ISO 8601 formatted datetime. If not provided, current server time is used
{
"sensor_value": "23.5",
"timestamp": "2024-08-05T12:30:00Z"
}
Response fields
status- string - Success message confirming data registration
{
"status": "Data registered successfully"
}
Response status options
200- Data has been created
400- There is an issue with the request data
403- Permission Denied - Issue with Authorisation
429- Too Many Requests - Rate limit exceeded (one request per 5 seconds per dataset)