Updating endpoint url