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

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.
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.