Update API request function and design