return the updated task/job in task api