Upgrade the app

Basic Information

This interface is mainly used to upgrade applications

请求路径

  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. }

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

响应示例

  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. ]

Model

Upgrade

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

Attributes

nametyperequiredconstraintChinese nameillustrate
update_versions[UpgradeBase]truenonenone

UpgradeBase

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

Attributes

nametyperequiredconstraintChinese nameillustrate
market_namestringtruenoneMarket nameapp store name
app_model_idstringtruenoneApp model idapplication model id
app_model_versionstringtruenoneApp model versioncurrent 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. }

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