Api.upgrade