Update a task

Updates an existing task.