Skip to main content

Upgrade the app

Basic Information

This interface is mainly used to upgrade applications

请求路径
POST /openapi/v1/teams/{team_id}/regions/{region_name}/apps/{app_id}/upgrade
Body 请求体示例
{
"update_versions": [
{
"market_name": "string",
"app_model_id": "string",
"app_model_version": "string"
}
]
}

request parameters

nameLocationtyperequiredChinese nameillustrate
app_idpathintegerYesapplication group id
team_idpathstringYesnone
region_namepathstringYesnone
bodybodyUpgradenonone

return result

status codeStatus code meaningillustratedata model
200OKsuccessInline

return data structure

nametyperequiredconstraintChinese nameillustrate
anonymous[ListUpgrade]falsenonenone
» market_namestringtruenoneMarket nameapp store name
» app_model_idstringtruenoneApp model idapplication model id
» app_model_namestringtruenoneApp model nameApp model name
» current_versionstringtruenoneCurrent versioncurrent version
» enterprise_idstringtruenoneEnterprise identerprise id
» can_upgradebooleantruenoneCan upgradeupgradeable
» upgrade_versions[string]truenoneList of upgradeable versions
» sourcestringtruenoneSourceApplication Model Source
响应示例
[
{
"market_name": "string",
"app_model_id": "string",
"app_model_name": "string",
"current_version": "string",
"enterprise_id": "string",
" can_upgrade": true,
"upgrade_versions": [
"string"
],
"source": "string"
}
]

Model

Upgrade

{
"update_versions": [
{
"market_name": "string",
"app_model_id": "string",
"app_model_version": "string"
}
]
}

Attributes

nametyperequiredconstraintChinese nameillustrate
update_versions[UpgradeBase]truenonenone

UpgradeBase

{
"market_name": "string",
"app_model_id": "string",
"app_model_version": "string"
}

Attributes

nametyperequiredconstraintChinese nameillustrate
market_namestringtruenoneMarket nameapp store name
app_model_idstringtruenoneApp model idapplication model id
app_model_versionstringtruenoneApp model versioncurrent version

ListUpgrade

{
"market_name": "string",
"app_model_id": "string",
"app_model_name": "string",
"current_version": "string",
"enterprise_id": "string",
"can_upgrade" : true,
"upgrade_versions": [
"string"
],
"source": "string"
}

Attributes

nametyperequiredconstraintChinese nameillustrate
market_namestringtruenoneMarket nameapp store name
app_model_idstringtruenoneApp model idapplication model id
app_model_namestringtruenoneApp model nameApp model name
current_versionstringtruenoneCurrent versioncurrent version
enterprise_idstringtruenoneEnterprise identerprise id
can_upgradebooleantruenoneCan upgradeupgradeable
upgrade_versions[string]truenoneList of upgradeable versions
sourcestringtruenoneSourceApplication Model Source