Update callAPI method