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

NameTypeExampleDescription
sensorIDnumber12345
Unique identifier of the sensor.
datenumber1672531200000
UTC timestamp of when the log was created.
timestampstring2025-05-29T16:54:49.240Z
ISO UTC timestamp of when the log was created.
siteIDnumber67890
Unique identifier of the site.
valuenumber42.5
Value associated with the log.
readingnumber36.8
Reading taken from the sensor.
uniqueKeystringunique-key-12345
Unique key for the log entry.
readUnitsstringCelsius
Units of the reading. Null when the sensor has no converted unit.
valueUnitsstringLiters
Units of the value. Null when the sensor has no converted unit.
statusTypeSourcenumber1
Status type source identifier.
textstringNormal operation
Additional descriptive text.
NameTypeExampleDescription
flowMeterIDnumber123
Unique identifier of the site flow meter.
timestampstring2024-01-01T00:00:00.000Z
ISO UTC timestamp of when the log was created. Future timestamps are rejected on single-log uploads.
startTimestampstring2023-12-31T23:00:00.000Z
ISO UTC timestamp of the start of the measurement interval. Cannot be in the future or after timestamp.
totalVolumenumber1000
Cumulative (totalizer) volume recorded by the flow meter.
dayVolumenumber100
Volume accumulated by the flow meter during the current day.
pressurenumber50
Line pressure measured at the flow meter.
densitynumber0.85
Density of the measured fluid.
temperaturenumber21.5
Temperature of the measured fluid.
flowRatenumber10
Current flow rate per minute.
actuatorStatusnumber4
Status of the meter valve actuator (see ActuatorStatus).
actuatorPositionnumber100
Position of the meter valve actuator.
statusTypeSourcenumber1
Status type source identifier.
currentFlowSensorConvertedUnitIDnumber5
Unit identifier of the flow rate (current flow sensor converted unit).
volumeUnitIDnumber3
Unit identifier of the volume values.
NameTypeExampleDescription
sitePumpIDnumber123
Unique identifier of the site pump.
timestampstring2024-01-01T00:00:00.000Z
ISO UTC timestamp of when the log was created. Future timestamps are rejected on single-log uploads.
startTimestampstring2023-12-31T23:00:00.000Z
ISO UTC timestamp of when the pump started. Cannot be in the future or after timestamp.
frequencynumber60
Output frequency of the pump drive.
outputCurrentnumber12.5
Output current (amps) of the pump drive.
outputVoltagenumber230
Output voltage of the pump drive.
pressurenumber150
Discharge pressure of the pump.
suctionPressurenumber80
Suction pressure of the pump.
vibrationLevelnumber1.2
Vibration level measured on the pump.
igbtTemperaturenumber65
IGBT temperature of the pump drive.
capacitanceTemperaturenumber55
Capacitor temperature of the pump drive.
autoEnabledbooleantrue
Whether the pump is in automatic mode. Defaults to false.
faultboolean 
Whether the pump is reporting a fault. Defaults to false.
underAlarmboolean 
Whether the pump is in an alarm state. Defaults to false.
runningbooleantrue
Whether the pump is running. Defaults to false.
activebooleantrue
Whether the pump is active. Defaults to true.
targetConcentrationnumber10
Target chemical concentration for an injection pump.
actualConcentrationnumber9
Actual chemical concentration for an injection pump.
injectionRatenumber5
Chemical injection rate of the pump.
statusIDnumber2
Status of the pump. (0, 1, 2, 3, 4, 5, 6, 7, 8)
statusstringRunning
Human-readable status text of the pump.
NameTypeExampleDescription
entryTankLevelnumber4000
Total fluid level on the entry side of the tank group. Defaults to 0.
exitTankLevelnumber3500
Total fluid level on the exit side of the tank group. Defaults to 0.
totalVolumenumber5000
Total fluid volume in the tank group. Defaults to 0.
siteTankGroupIDnumber456
Unique identifier of the site tank group.
entryWaterLevelnumber1200
Water level on the entry side of the tank group.
exitWaterLevelnumber1000
Water level on the exit side of the tank group.
exitIsPressureboolean 
Whether the exit side is measured by pressure. Defaults to false.
entryIsPressureboolean 
Whether the entry side is measured by pressure. Defaults to false.
entryPressurenumber12.5
Pressure on the entry side of the tank group. Defaults to 0.
exitPressurenumber11.8
Pressure on the exit side of the tank group. Takes precedence over entryPressure as the current tank pressure.
actuatorStatusnumber4
Status of the tank group actuator (see ActuatorStatus). Defaults to 0.
timestampstring2025-04-16T10:00:00.000Z
ISO UTC timestamp of when the log was created.
capacityUnitIDnumber7
Unit identifier of the tank capacity.
entryVolumenumber2600
Fluid volume on the entry side of the tank group.
exitVolumenumber2400
Fluid volume on the exit side of the tank group.