Update Task Status
Update only the status of a task in Last Mile Intelligence.
Operation
Section titled “Operation”updateTaskStatus
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 |
| Status ID | string | Yes | - | The new status ID |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "task_abc123", "title": "Equipment Maintenance", "status": "completed", "completedAt": "2024-06-21T10:30:00Z", "updatedAt": "2024-06-21T10:30:00Z"}{ "success": false, "error": "Invalid status transition", "currentStatus": "pending", "requestedStatus": "completed"}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
- Invalid Status: Status ID is not valid
- Invalid Transition: Status transition not allowed
- Permission Denied: API token lacks permission for this operation