Skip to content

Update Location

Update an existing location in Last Mile Intelligence.

updateLocation

location

ParameterTypeRequiredDefaultDescription
Location IDstringYes-The ID of the location to update
Location DataJSONYes-Fields to update
{
"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"
}
  • 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