Create Service Version
post
/appstore/publisher/v1/services/{listingVersionId}/version
Create a new version for an already published service listing. A new version is necessary to make edits to an already published listing.The new version has to go though the same life cycle and approval workflow to get published to the Marketplace. Publishing the new version automatically archives the older version from the Marketplace. At any given point only one version of the service is active on the Marketplace.
Request
Path Parameters
-
listingVersionId: integer(int64)
ID of the existing service for which to create a new version.
Response
Supported Media Types
- application/json;qs=1
- application/xml;qs=.5
200 Response
Successful Operation
400 Response
Bad Request
401 Response
Not Authorized
500 Response
System Error
Examples
The following example creates a new version for an existing service by a partner, by submitting a POST request on the REST resource using cURL. It returns the newly created version ID.
cURL Example
curl -X POST -H "X-Oracle-UserId: partner-email" -H "Authorization: Bearer Access-token" "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/services/9483951/version"
Request Header
X-Oracle-UserId: fname.lname@oracle.com Authorization: Bearer Access-token
Request Body
None
HTTP Status Code:
201 Created
JSON Response:
{ "message": "A new version was created.", "entityId": "9483646", }Back to Top