Update Task
Update an existing task in Last Mile Intelligence.
Operation
Section titled “Operation”updateTask
Resource
Section titled “Resource”task
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Task ID | string | Yes | - | The ID of the task to update |
| Task Data | JSON | Yes | - | Fields to update |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "task_abc123", "title": "Equipment Maintenance - Updated", "priority": "urgent", "dueDate": "2024-06-23", "updatedAt": "2024-06-21T10:30:00Z"}{ "success": false, "error": "Task not found", "taskId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Task Not Found: Task with specified ID does not exist
- Validation Error: Invalid data format in update fields
- Permission Denied: API token lacks permission for this operation