post
/v1/edge/logs/generic
https://platform.sitepro.com/v1/edge/logs/generic
Submit mixed logs (sensor + flow meter + pump + tank)
Sample Request Body
[ { "sensorID": 40779, "value": 52.34, "timestamp": "2025-04-16T10:00:00Z" }, { "flowMeterID": 12345, "totalVolume": 10200.5, "timestamp": "2025-04-16T10:00:00Z" }, { "sitePumpID": 789, "pressure": 150, "running": true, "timestamp": "2025-04-16T10:00:00Z" }, { "siteTankGroupID": 456, "entryTankLevel": 4000, "exitTankLevel": 3500, "totalVolume": 5000, "timestamp": "2025-04-16T10:00:00Z" } ]
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. |
| Name | Type |
|---|---|
| flowMeterID | number |
| timestamp | string |
| startTimestamp | string |
| totalVolume | number |
| dayVolume | number |
| pressure | number |
| density | number |
| temperature | number |
| flowRate | number |
| actuatorStatus | number |
| actuatorPosition | number |
| statusTypeSource | number |
| currentFlowSensorConvertedUnitID | number |
| volumeUnitID | number |
| Name | Type | Example | Description |
|---|---|---|---|
| sitePumpID | number | 123 | |
| timestamp | string | 2024-01-01T00:00:00.000Z | |
| startTimestamp | string | 2023-12-31T23:00:00.000Z | |
| frequency | number | 60 | |
| outputCurrent | number | 12.5 | |
| outputVoltage | number | 230 | |
| pressure | number | 150 | |
| suctionPressure | number | 80 | |
| vibrationLevel | number | 1.2 | |
| igbtTemperature | number | 65 | |
| capacitanceTemperature | number | 55 | |
| autoEnabled | boolean | true | |
| fault | boolean | ||
| underAlarm | boolean | ||
| running | boolean | true | |
| active | boolean | true | |
| targetConcentration | number | 10 | |
| actualConcentration | number | 9 | |
| injectionRate | number | 5 | |
| statusID | number | 2 | Possible values: 0, 1, 2, 3, 4, 5, 6, 7, 8 |
| status | string | Running |
| Name | Type |
|---|---|
| entryTankLevel | number |
| exitTankLevel | number |
| totalVolume | number |
| siteTankGroupID | number |
| entryWaterLevel | number |
| exitWaterLevel | number |
| exitIsPressure | boolean |
| entryIsPressure | boolean |
| entryPressure | number |
| exitPressure | number |
| actuatorStatus | number |
| timestamp | string |
| capacityUnitID | number |
| entryVolume | number |
| exitVolume | number |
curl -X POST -H "Authorization: Bearer <JWT_Token>" -H "Content-Type: application/json" -d '[ { "sensorID": 40779, "value": 52.34, "timestamp": "2025-04-16T10:00:00Z" }, { "flowMeterID": 12345, "totalVolume": 10200.5, "timestamp": "2025-04-16T10:00:00Z" }, { "sitePumpID": 789, "pressure": 150, "running": true, "timestamp": "2025-04-16T10:00:00Z" }, { "siteTankGroupID": 456, "entryTankLevel": 4000, "exitTankLevel": 3500, "totalVolume": 5000, "timestamp": "2025-04-16T10:00:00Z" } ]' "https://platform.sitepro.com/v1/edge/logs/generic"