Update Tank
Update an existing tank in Last Mile Intelligence.
Operation
Section titled “Operation”updateTank
Resource
Section titled “Resource”tank
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Tank ID | string | Yes | - | The ID of the tank to update |
| Tank Data | JSON | Yes | - | Fields to update |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "tank_abc123", "name": "Main Storage Tank - Updated", "capacity": 12000, "reorderPoint": 2500, "updatedAt": "2024-06-21T10:30: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
- Validation Error: Invalid data format in update fields
- Permission Denied: API token lacks permission for this operation