Skip to content

Create Tank Reading

Record a new tank reading in Last Mile Intelligence.

createTankReading

tank

ParameterTypeRequiredDefaultDescription
Tank IDstringYes-The ID of the tank
Reading DataJSONYes-Reading information
FieldTypeRequiredDescription
levelnumberYesCurrent tank level
readingTypestringNoType (manual, automatic)
timestampstringNoReading timestamp (ISO 8601)
notesstringNoAdditional notes
{
"id": "read_new123",
"tankId": "tank_abc123",
"level": 4000,
"percentage": 40,
"readingType": "manual",
"timestamp": "2024-06-21T09:00:00Z",
"createdAt": "2024-06-21T09:00:00Z"
}
{
"success": false,
"error": "Tank not found",
"tankId": "invalid_id"
}
  • Missing API Token: LMI credential is missing API token
  • Tank Not Found: Tank with specified ID does not exist
  • Invalid Level: Level exceeds tank capacity
  • Validation Error: Required fields missing or invalid
  • Permission Denied: API token lacks permission for this operation