Update a task

Updates a task by its ID.