updates url that is target of api query