Burn Rate
The burn rate resource.
Base/burnRate
GET
/burnRateList burn rates
Retrieve a paginated list of burn rates. 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/burnRate
curl --request GET \
--url '<your-host>/burnRate?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'Response
[
{
"id": "abc123def456",
"companyId": "xyz789",
"customerLocationId": "xyz789",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"kFactor": 0,
"method": "string",
"intervalDays": 0
}
]GET
/burnRateRetrieve a burn rate
Fetch a single burn rate by filtering on `id`.
Query parameters
idstringMatch on the burn rate's `id`, e.g. `eq.{id}`.
GET/burnRate
curl --request GET \
--url '<your-host>/burnRate?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'Response
{
"id": "abc123def456",
"companyId": "xyz789",
"customerLocationId": "xyz789",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"kFactor": 0,
"method": "string",
"intervalDays": 0
}POST
/burnRateCreate a burn rate
Create a new burn rate.
Body parameters
companyIdstringrequiredReferences company.id
customerLocationIdstringrequiredReferences customerLocation.id
kFactornumbermethodstringintervalDaysnumberintervalHddnumbergallonsDeliverednumberconfidencenumbervalidFromdatevalidTodatePOST/burnRate
curl --request POST \
--url <your-host>/burnRate \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"companyId":"xyz789","customerLocationId":"xyz789"}'Response
{
"id": "abc123def456",
"companyId": "xyz789",
"customerLocationId": "xyz789",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"kFactor": 0,
"method": "string",
"intervalDays": 0
}PATCH
/burnRateUpdate a burn rate
Update an existing burn rate, matched on `id`.
Body parameters
companyIdstringrequiredReferences company.id
customerLocationIdstringrequiredReferences customerLocation.id
kFactornumbermethodstringintervalDaysnumberintervalHddnumbergallonsDeliverednumberconfidencenumbervalidFromdatevalidTodatePATCH/burnRate
curl --request PATCH \
--url '<your-host>/burnRate?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",
"customerLocationId": "xyz789",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"kFactor": 0,
"method": "string",
"intervalDays": 0
}DELETE
/burnRateDelete a burn rate
Delete a burn rate, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the burn rate to delete, e.g. `eq.{id}`.
DELETE/burnRate
curl --request DELETE \
--url '<your-host>/burnRate?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'204 No Content