changing endpoint url to type to public