升级应用

基本信息

该接口主要用于升级应用

请求路径

  1. POST /openapi/v1/teams/{team_id}/regions/{region_name}/apps/{app_id}/upgrade

Body 请求体示例

  1. {
  2. "update_versions": [
  3. {
  4. "market_name": "string",
  5. "app_model_id": "string",
  6. "app_model_version": "string"
  7. }
  8. ]
  9. }

请求参数

名称位置类型必选中文名说明
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应用模型来源

响应示例

  1. [
  2. {
  3. "market_name": "string",
  4. "app_model_id": "string",
  5. "app_model_name": "string",
  6. "current_version": "string",
  7. "enterprise_id": "string",
  8. "can_upgrade": true,
  9. "upgrade_versions": [
  10. "string"
  11. ],
  12. "source": "string"
  13. }
  14. ]

模型

Upgrade

  1. {
  2. "update_versions": [
  3. {
  4. "market_name": "string",
  5. "app_model_id": "string",
  6. "app_model_version": "string"
  7. }
  8. ]
  9. }

属性

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

UpgradeBase

  1. {
  2. "market_name": "string",
  3. "app_model_id": "string",
  4. "app_model_version": "string"
  5. }

属性

名称类型必选约束中文名说明
market_namestringtruenoneMarket name应用商店名称
app_model_idstringtruenoneApp model id应用模型id
app_model_versionstringtruenoneApp model version当前版本

ListUpgrade

  1. {
  2. "market_name": "string",
  3. "app_model_id": "string",
  4. "app_model_name": "string",
  5. "current_version": "string",
  6. "enterprise_id": "string",
  7. "can_upgrade": true,
  8. "upgrade_versions": [
  9. "string"
  10. ],
  11. "source": "string"
  12. }

属性

名称类型必选约束中文名说明
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应用模型来源