Tank Monitor
The tank monitor resource.
Base/tankMonitor
GET
/tankMonitorList tank monitors
Retrieve a paginated list of tank monitors. 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.
GET/tankMonitor
curl --request GET \
--url '<your-host>/tankMonitor?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'Response
[
{
"id": "abc123def456",
"companyId": "xyz789",
"tankId": "xyz789",
"active": true,
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"model": "string",
"installedAt": "2026-01-01T00:00:00Z"
}
]GET
/tankMonitorRetrieve a tank monitor
Fetch a single tank monitor by filtering on `id`.
Query parameters
idstringMatch on the tank monitor's `id`, e.g. `eq.{id}`.
GET/tankMonitor
curl --request GET \
--url '<your-host>/tankMonitor?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'Response
{
"id": "abc123def456",
"companyId": "xyz789",
"tankId": "xyz789",
"active": true,
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"model": "string",
"installedAt": "2026-01-01T00:00:00Z"
}POST
/tankMonitorCreate a tank monitor
Create a new tank monitor.
Body parameters
companyIdstringrequiredReferences company.id
tankIdstringrequiredReferences tank.id
modelstringinstalledAttimestampremovedAttimestampactivebooleanrequiredproviderstringreportIntervalSecondsnumberPOST/tankMonitor
curl --request POST \
--url <your-host>/tankMonitor \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"companyId":"xyz789","tankId":"xyz789","active":true}'Response
{
"id": "abc123def456",
"companyId": "xyz789",
"tankId": "xyz789",
"active": true,
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"model": "string",
"installedAt": "2026-01-01T00:00:00Z"
}PATCH
/tankMonitorUpdate a tank monitor
Update an existing tank monitor, matched on `id`.
Body parameters
companyIdstringrequiredReferences company.id
tankIdstringrequiredReferences tank.id
modelstringinstalledAttimestampremovedAttimestampactivebooleanrequiredproviderstringreportIntervalSecondsnumberPATCH/tankMonitor
curl --request PATCH \
--url '<your-host>/tankMonitor?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"companyId":"xyz789"}'Response
{
"id": "abc123def456",
"companyId": "xyz789",
"tankId": "xyz789",
"active": true,
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"model": "string",
"installedAt": "2026-01-01T00:00:00Z"
}DELETE
/tankMonitorDelete a tank monitor
Delete a tank monitor, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the tank monitor to delete, e.g. `eq.{id}`.
DELETE/tankMonitor
curl --request DELETE \
--url '<your-host>/tankMonitor?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'204 No Content