Update Location
Update an existing location in Last Mile Intelligence.
Operation
Section titled “Operation”updateLocation
Resource
Section titled “Resource”location
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Location ID | string | Yes | - | The ID of the location to update |
| Location Data | JSON | Yes | - | Fields to update |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "loc_abc123", "name": "Main Warehouse - Updated", "type": "warehouse", "isActive": true, "updatedAt": "2024-06-21T10:30:00Z"}{ "success": false, "error": "Location not found", "locationId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Location Not Found: Location with specified ID does not exist
- Geocoding Failed: Could not geocode the updated address
- Permission Denied: API token lacks permission for this operation