update task API