upgradeApiIndex