Validate Application Package - V2

patch

/appstore/publisher/v2/applications/{listingVersionId}/packages/{packageVersionId}

Validate the specified package. A listing with a package cannot be submitted for approval if the corresponding package is not validated.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : AppStatus
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful Operation
Body ()
Root Schema : acknowledgement
Type: object
Show Source

400 Response

Invalid Parameter Value

401 Response

Not Authorized

404 Response

Entity Not Found

500 Response

System Error
Back to Top

Examples

The following example validates a newly created package, by submitting a PATCH request on the REST resource using cURL.

cURL Example

curl -X PATCH -H "X-Oracle-UserId: partner-email" -H "Authorization: Bearer Access-token" -H "Content-Type: application/json" -d "JSON-data-as-shown-in-following-example" "https://ocm-apis.cloud.oracle.com/appstore/publisher/v2/applications/{listingVersionId}/packages/{packageVersionId}}"

Request Header

X-Oracle-UserId: fname.lname@oracle.com 
Authorization: Bearer Access-token 
Content-Type: application/json

Request Body

{
  "action": "validate"
}

HTTP Status Code:

200 OK

JSON Response:

{
  "message": "ListingPackage validation was successful",
  "entityId": "581221"
}
Back to Top