Update Service Area
Update an existing service area in Last Mile Intelligence.
Operation
Section titled “Operation”updateServiceArea
Resource
Section titled “Resource”serviceArea
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Service Area ID | string | Yes | - | The ID of the area to update |
| Service Area Data | JSON | Yes | - | Fields to update |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "sa_chicago", "name": "Chicago Metro - Expanded", "description": "Greater Chicago metropolitan area with expanded coverage", "updatedAt": "2024-06-21T10:30:00Z"}{ "success": false, "error": "Service area not found", "serviceAreaId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Service Area Not Found: Area with specified ID does not exist
- Invalid Polygon: GeoJSON polygon format is invalid
- Permission Denied: API token lacks permission for this operation