Skip to content

Update Task Status

Update only the status of a task in Last Mile Intelligence.

updateTaskStatus

task

ParameterTypeRequiredDefaultDescription
Task IDstringYes-The ID of the task to update
Status IDstringYes-The new status ID
{
"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"
}
  • 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