Delete a specific resource of the Package - V2

delete

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

Delete a specific resource of the application's package.

Request

Path Parameters
Back to Top

Response

Supported Media Types

200 Response

Successful Operation
Body ()
Root Schema : collection
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : StatusComment
Type: object
Show Source
Nested Schema : Item
Type: object
Show Source
Nested Schema : serviceMappings
Type: array
Show Source
Nested Schema : TASError
Type: object
Show Source
Nested Schema : ServiceMapping
Type: object
Show Source
Nested Schema : CustomerSubscription
Type: object
Show Source

400 Response

Invalid Parameter Value/Bad Request

401 Response

Not Authorized

404 Response

Entity Not Found

500 Response

System Error
Back to Top

Examples

The following example deletes an existing package of a listing, by submitting a DELETE request on the REST resource using cURL.

cURL Example

curl -X  DELETE -H "X-Oracle-UserId: partner-email" -H "Authorization: Bearer Access-token" "https://ocm-apis.cloud.oracle.com/appstore/publisher/v2/applications/{listingVersionId}/packages/{packageVersionId}/resources/{resourceId}"

Request Header

X-Oracle-UserId: fname.lname@oracle.com 
Authorization: Bearer Access-token 

Request Body

None

HTTP Status Code:

200 OK

JSON Response:

{
  "message": "Listing Package for ListingVersionId = 3037612 was deleted.",
  "entityId": "3037612"
}
Back to Top