change api connection