post
/v1/edge/logs/generic
https://platform.sitepro.com/v1/edge/logs/generic
Submit mixed logs (sensor + flow meter + pump + tank)
Sample Request Body
To submit mixed data, use the following Dtos to create your request body. A request can be posted with a mixture of the entries.
Request Example
[ { "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" } ]
Fields accepted for each variant
[ { "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. |
| Name | Type | Example | Description |
|---|---|---|---|
| flowMeterID | number | 123 | Unique identifier of the site flow meter. |
| timestamp | string | 2024-01-01T00:00:00.000Z | ISO UTC timestamp of when the log was created. Future timestamps are rejected on single-log uploads. |
| startTimestamp | string | 2023-12-31T23:00:00.000Z | ISO UTC timestamp of the start of the measurement interval. Cannot be in the future or after timestamp. |
| totalVolume | number | 1000 | Cumulative (totalizer) volume recorded by the flow meter. |
| dayVolume | number | 100 | Volume accumulated by the flow meter during the current day. |
| pressure | number | 50 | Line pressure measured at the flow meter. |
| density | number | 0.85 | Density of the measured fluid. |
| temperature | number | 21.5 | Temperature of the measured fluid. |
| flowRate | number | 10 | Current flow rate per minute. |
| actuatorStatus | number | 4 | Status of the meter valve actuator (see ActuatorStatus). |
| actuatorPosition | number | 100 | Position of the meter valve actuator. |
| statusTypeSource | number | 1 | Status type source identifier. |
| currentFlowSensorConvertedUnitID | number | 5 | Unit identifier of the flow rate (current flow sensor converted unit). |
| volumeUnitID | number | 3 | Unit identifier of the volume values. |
| Name | Type | Example | Description |
|---|---|---|---|
| sitePumpID | number | 123 | Unique identifier of the site pump. |
| timestamp | string | 2024-01-01T00:00:00.000Z | ISO UTC timestamp of when the log was created. Future timestamps are rejected on single-log uploads. |
| startTimestamp | string | 2023-12-31T23:00:00.000Z | ISO UTC timestamp of when the pump started. Cannot be in the future or after timestamp. |
| frequency | number | 60 | Output frequency of the pump drive. |
| outputCurrent | number | 12.5 | Output current (amps) of the pump drive. |
| outputVoltage | number | 230 | Output voltage of the pump drive. |
| pressure | number | 150 | Discharge pressure of the pump. |
| suctionPressure | number | 80 | Suction pressure of the pump. |
| vibrationLevel | number | 1.2 | Vibration level measured on the pump. |
| igbtTemperature | number | 65 | IGBT temperature of the pump drive. |
| capacitanceTemperature | number | 55 | Capacitor temperature of the pump drive. |
| autoEnabled | boolean | true | Whether the pump is in automatic mode. Defaults to false. |
| fault | boolean | Whether the pump is reporting a fault. Defaults to false. | |
| underAlarm | boolean | Whether the pump is in an alarm state. Defaults to false. | |
| running | boolean | true | Whether the pump is running. Defaults to false. |
| active | boolean | true | Whether the pump is active. Defaults to true. |
| targetConcentration | number | 10 | Target chemical concentration for an injection pump. |
| actualConcentration | number | 9 | Actual chemical concentration for an injection pump. |
| injectionRate | number | 5 | Chemical injection rate of the pump. |
| statusID | number | 2 | Status of the pump. (0, 1, 2, 3, 4, 5, 6, 7, 8) |
| status | string | Running | Human-readable status text of the pump. |
| Name | Type | Example | Description |
|---|---|---|---|
| entryTankLevel | number | 4000 | Total fluid level on the entry side of the tank group. Defaults to 0. |
| exitTankLevel | number | 3500 | Total fluid level on the exit side of the tank group. Defaults to 0. |
| totalVolume | number | 5000 | Total fluid volume in the tank group. Defaults to 0. |
| siteTankGroupID | number | 456 | Unique identifier of the site tank group. |
| entryWaterLevel | number | 1200 | Water level on the entry side of the tank group. |
| exitWaterLevel | number | 1000 | Water level on the exit side of the tank group. |
| exitIsPressure | boolean | Whether the exit side is measured by pressure. Defaults to false. | |
| entryIsPressure | boolean | Whether the entry side is measured by pressure. Defaults to false. | |
| entryPressure | number | 12.5 | Pressure on the entry side of the tank group. Defaults to 0. |
| exitPressure | number | 11.8 | Pressure on the exit side of the tank group. Takes precedence over entryPressure as the current tank pressure. |
| actuatorStatus | number | 4 | Status of the tank group actuator (see ActuatorStatus). Defaults to 0. |
| timestamp | string | 2025-04-16T10:00:00.000Z | ISO UTC timestamp of when the log was created. |
| capacityUnitID | number | 7 | Unit identifier of the tank capacity. |
| entryVolume | number | 2600 | Fluid volume on the entry side of the tank group. |
| exitVolume | number | 2400 | Fluid volume on the exit side of the tank group. |