API call for updating