post
/v1/edge/logs/sensor
https://platform.sitepro.com/v1/edge/logs/sensor
Process a single edge sensor log
Sample Request Body
{ "sensorID": 12345, "date": 1672531200000, "timestamp": "2025-05-29T16:54:49.240Z", "siteID": 67890, "value": 42.5, "reading": 36.8, "uniqueKey": "unique-key-12345", "readUnits": "Celsius", "valueUnits": "Liters", "statusTypeSource": 1, "text": "Normal operation" }
Expected responses
{ "description": "", "content": { "application/json": { "schema": { "type": "object", "properties": { "result": { "type": "string", "description": "Human-readable summary of what was processed. This is generic across all reading types, and may be augmented with additional fields in the future.", "example": "Reading processed successfully." } }, "required": [ "result" ] } } } }
Related schemas
| Name | Type | Example | Description |
|---|---|---|---|
| sensorID | number | 12345 | Unique identifier of the sensor. |
| date | number | 1672531200000 | UTC timestamp of when the log was created. |
| timestamp | string | 2025-05-29T16:54:49.240Z | ISO UTC timestamp of when the log was created. |
| siteID | number | 67890 | Unique identifier of the site. |
| value | number | 42.5 | Value associated with the log. |
| reading | number | 36.8 | Reading taken from the sensor. |
| uniqueKey | string | unique-key-12345 | Unique key for the log entry. |
| readUnits | string | Celsius | Units of the reading. Null when the sensor has no converted unit. |
| valueUnits | string | Liters | Units of the value. Null when the sensor has no converted unit. |
| statusTypeSource | number | 1 | Status type source identifier. |
| text | string | Normal operation | Additional descriptive text. |
curl -X POST -H "Authorization: Bearer <JWT_Token>" -H "Content-Type: application/json" -d '{ "sensorID": 12345, "date": 1672531200000, "timestamp": "2025-05-29T16:54:49.240Z", "siteID": 67890, "value": 42.5, "reading": 36.8, "uniqueKey": "unique-key-12345", "readUnits": "Celsius", "valueUnits": "Liters", "statusTypeSource": 1, "text": "Normal operation" }' "https://platform.sitepro.com/v1/edge/logs/sensor"
Authorization
Bearer
Properties
Warning: This endpoint can affect production data.