update task api