Skip to content

Update Task

Update an existing task in Last Mile Intelligence.

updateTask

task

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