Resetting the url for the api