Releasing Server & Data Center apps using Marketplace REST API

Hi,

Does anybody automated releases of Server & Data Center apps using Marketplace REST API?

Currently, we release apps using web interface, and we supply the same artifact for both server & data center versions.

Via the web interface, we upload an artifact, and it creates two app versions with the same version name but different build numbers.

We can’t achieve the same using Marketplace REST API. API doesn’t allow us to create two app versions with the same name and different build numbers (POST /rest/2/addons/{addonKey}/versions).

We tried to create a single app version that is compatible with both deployment types and achieved the following:

We provided the following value ‘compatibilities’ request property in this case

[{
  "application": "jira",
  "hosting": {
    "server": {
      "min": {
        "build": 117
      },
      "max": {
        "build": 117
      }
    },
  }
},
{
  "application": "jira",
  "hosting": {
    "dataCenter": {
      "min": {
        "build": 117
      },
      "max": {
        "build": 117
      }
    }
  }
}]

Is it a valid state?

1 Like

I second to that question. What is the proper way to release Server and DC by REST API?