updating endpoint url