跳到主要内容

升级应用

基本信息

该接口主要用于升级应用

请求路径
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"
}
]
}

请求参数

名称位置类型必选中文名说明
app_idpathinteger应用组id
team_idpathstringnone
region_namepathstringnone
bodybodyUpgradenone

返回结果

状态码状态码含义说明数据模型
200OK成功Inline

返回数据结构

名称类型必选约束中文名说明
anonymous[ListUpgrade]falsenonenone
» market_namestringtruenoneMarket name应用商店名称
» app_model_idstringtruenoneApp model id应用模型id
» app_model_namestringtruenoneApp model name应用模型名称
» current_versionstringtruenoneCurrent version当前版本
» enterprise_idstringtruenoneEnterprise id企业id
» can_upgradebooleantruenoneCan upgrade可升级
» upgrade_versions[string]truenone可升级的版本列表
» sourcestringtruenoneSource应用模型来源
响应示例
[
{
"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"
}
]

模型

Upgrade

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

属性

名称类型必选约束中文名说明
update_versions[UpgradeBase]truenonenone

UpgradeBase

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

属性

名称类型必选约束中文名说明
market_namestringtruenoneMarket name应用商店名称
app_model_idstringtruenoneApp model id应用模型id
app_model_versionstringtruenoneApp model 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"
}

属性

名称类型必选约束中文名说明
market_namestringtruenoneMarket name应用商店名称
app_model_idstringtruenoneApp model id应用模型id
app_model_namestringtruenoneApp model name应用模型名称
current_versionstringtruenoneCurrent version当前版本
enterprise_idstringtruenoneEnterprise id企业id
can_upgradebooleantruenoneCan upgrade可升级
upgrade_versions[string]truenone可升级的版本列表
sourcestringtruenoneSource应用模型来源