Switch endpoint url