Use API to switch pool