update stub api