update API call