Create Tank Reading
Record a new tank reading in Last Mile Intelligence.
Operation
Section titled “Operation”createTankReading
Resource
Section titled “Resource”tank
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Tank ID | string | Yes | - | The ID of the tank |
| Reading Data | JSON | Yes | - | Reading information |
Reading Data Fields
Section titled “Reading Data Fields”| Field | Type | Required | Description |
|---|---|---|---|
| level | number | Yes | Current tank level |
| readingType | string | No | Type (manual, automatic) |
| timestamp | string | No | Reading timestamp (ISO 8601) |
| notes | string | No | Additional notes |
Response
Section titled “Response”Success
Section titled “Success”{ "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"}Error Handling
Section titled “Error Handling”- 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