Update Fuel
Update an existing fuel product in Last Mile Intelligence.
Operation
Section titled “Operation”updateFuel
Resource
Section titled “Resource”fuel
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Fuel ID | string | Yes | - | The ID of the fuel to update |
| Fuel Data | JSON | Yes | - | Fields to update |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "fuel_diesel", "name": "Ultra Low Sulfur Diesel", "code": "ULSD", "currentPrice": 3.599, "taxRate": 0.244, "updatedAt": "2024-06-21T10:30:00Z"}{ "success": false, "error": "Fuel not found", "fuelId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Fuel Not Found: Fuel with specified ID does not exist
- Validation Error: Invalid data format in update fields
- Permission Denied: API token lacks permission for this operation