Update Resource
Update an existing resource in Last Mile Intelligence.
Operation
Section titled “Operation”updateResource
Resource
Section titled “Resource”resource
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Resource ID | string | Yes | - | The ID of the resource to update |
| Resource Data | JSON | Yes | - | Fields to update |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "res_driver001", "firstName": "John", "lastName": "Smith", "phone": "(555) 987-6543", "updatedAt": "2024-06-21T10:30:00Z"}{ "success": false, "error": "Resource not found", "resourceId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Resource Not Found: Resource with specified ID does not exist
- Validation Error: Invalid data format in update fields
- Permission Denied: API token lacks permission for this operation