Update Vendor
Update an existing vendor in Last Mile Intelligence.
Operation
Section titled “Operation”updateVendor
Resource
Section titled “Resource”vendor
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Vendor ID | string | Yes | - | The ID of the vendor to update |
| Vendor Data | JSON | Yes | - | Fields to update |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "vend_abc123", "name": "Midwest Fuel Supply LLC", "contactName": "John Johnson Jr.", "updatedAt": "2024-06-21T10:30:00Z"}{ "success": false, "error": "Vendor not found", "vendorId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Vendor Not Found: Vendor with specified ID does not exist
- Duplicate Code: New vendor code already exists
- Permission Denied: API token lacks permission for this operation