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