API doc: added function for switching versions