updates host for api endpoints