Monitor Reading
The monitor reading resource.
/monitorReadingList monitor readings
Retrieve a paginated list of monitor readings. Filter, order, and select columns with PostgREST query parameters.
Query parameters
selectstringComma-separated columns to return. Defaults to all.
orderstringColumn to sort by, e.g. `createdAt.desc`.
limitintegerMaximum rows to return.
offsetintegerRows to skip, for pagination.
curl --request GET \
--url '<your-host>/monitorReading?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'[
{
"id": "abc123def456",
"companyId": "xyz789",
"tankMonitorId": "xyz789",
"tankId": "xyz789",
"readingAt": "2026-01-01T00:00:00Z",
"createdAt": "2026-01-01T00:00:00Z",
"pctOfCapacity": 0,
"gallonsEstimate": 0
}
]/monitorReadingRetrieve a monitor reading
Fetch a single monitor reading by filtering on `id`.
Query parameters
idstringMatch on the monitor reading's `id`, e.g. `eq.{id}`.
curl --request GET \
--url '<your-host>/monitorReading?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'{
"id": "abc123def456",
"companyId": "xyz789",
"tankMonitorId": "xyz789",
"tankId": "xyz789",
"readingAt": "2026-01-01T00:00:00Z",
"createdAt": "2026-01-01T00:00:00Z",
"pctOfCapacity": 0,
"gallonsEstimate": 0
}/monitorReadingCreate a monitor reading
Create a new monitor reading.
Body parameters
companyIdstringrequiredReferences company.id
tankMonitorIdstringrequiredReferences tankMonitor.id
tankIdstringrequiredReferences tank.id
readingAttimestamprequiredpctOfCapacitynumbergallonsEstimatenumbersourcestringreceivedAttimestamptemperatureFahrenheitnumberbatteryVoltsnumbersignalStrengthnumbertroubleCodestringreadingQualitystringproviderStatusstringStatus reported by the provider; interpreted using provider vocabulary, observed at readingAt.
batteryAlarmbooleanExplicit provider battery alarm, never inferred from voltage. Null means not reported.
readingTroublebooleanExplicit provider invalid-reading flag. Null means not reported.
highDrainAlarmbooleanExplicit provider rapid-draw alarm; not a diagnosis of a leak.
curl --request POST \
--url <your-host>/monitorReading \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"companyId":"xyz789","tankMonitorId":"xyz789","tankId":"xyz789","readingAt":"2026-01-01T00:00:00Z"}'{
"id": "abc123def456",
"companyId": "xyz789",
"tankMonitorId": "xyz789",
"tankId": "xyz789",
"readingAt": "2026-01-01T00:00:00Z",
"createdAt": "2026-01-01T00:00:00Z",
"pctOfCapacity": 0,
"gallonsEstimate": 0
}/monitorReadingUpdate a monitor reading
Update an existing monitor reading, matched on `id`.
Body parameters
companyIdstringrequiredReferences company.id
tankMonitorIdstringrequiredReferences tankMonitor.id
tankIdstringrequiredReferences tank.id
readingAttimestamprequiredpctOfCapacitynumbergallonsEstimatenumbersourcestringreceivedAttimestamptemperatureFahrenheitnumberbatteryVoltsnumbersignalStrengthnumbertroubleCodestringreadingQualitystringproviderStatusstringStatus reported by the provider; interpreted using provider vocabulary, observed at readingAt.
batteryAlarmbooleanExplicit provider battery alarm, never inferred from voltage. Null means not reported.
readingTroublebooleanExplicit provider invalid-reading flag. Null means not reported.
highDrainAlarmbooleanExplicit provider rapid-draw alarm; not a diagnosis of a leak.
curl --request PATCH \
--url '<your-host>/monitorReading?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"companyId":"xyz789"}'{
"id": "abc123def456",
"companyId": "xyz789",
"tankMonitorId": "xyz789",
"tankId": "xyz789",
"readingAt": "2026-01-01T00:00:00Z",
"createdAt": "2026-01-01T00:00:00Z",
"pctOfCapacity": 0,
"gallonsEstimate": 0
}/monitorReadingDelete a monitor reading
Delete a monitor reading, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the monitor reading to delete, e.g. `eq.{id}`.
curl --request DELETE \
--url '<your-host>/monitorReading?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'