changing url of api