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
-
listingVersionId: integer(int64)
Unique identifier of the application version whose package is to be deleted.
-
packageVersionId: integer(int64)
Unique identifier of the package to delete.
-
resourceId: integer(int64)
Unique identifier of the resource to delete.
Response
Supported Media Types
- application/json;qs=1
- application/xml;qs=.5
200 Response
Successful Operation
Nested Schema : StatusComment
Type:
Show Source
object
-
createdBy(optional):
string
-
creationDate(optional):
string(date-time)
-
endDate(optional):
string(date-time)
-
id(optional):
integer(int64)
-
packageVersionId(optional):
integer(int64)
-
requestorUserId(optional):
integer(int64)
-
requestType(optional):
object Item
-
serviceMappings(optional):
array serviceMappings
-
statusLookupId(optional):
integer(int64)
-
tasErrorHierarchy(optional):
object TASError
-
tasErrorId(optional):
integer(int64)
-
taskType(optional):
integer(int64)
-
uninstallAllowed(optional):
boolean
Default Value:
false
Nested Schema : TASError
Type:
Show Source
object
-
detail(optional):
string
-
errorCode(optional):
string
-
errorKey(optional):
string
-
errorKeyArg0(optional):
string
-
errorKeyArg1(optional):
string
-
errorKeyArg2(optional):
string
-
errorKeyArg3(optional):
string
-
errorKeyArg4(optional):
string
-
errorMessage(optional):
string
-
errorPath(optional):
string
-
id(optional):
integer(int64)
-
instance(optional):
string
-
parentId(optional):
integer(int64)
-
status(optional):
string
-
title(optional):
string
-
type(optional):
string
Nested Schema : Link
Type:
Show Source
object
-
href(optional):
string
-
rel(optional):
string
Allowed Values:
[ "SELF", "CANONICAL", "NEXT", "TEMPLATE", "PREV" ]
400 Response
Invalid Parameter Value/Bad Request
401 Response
Not Authorized
404 Response
Entity Not Found
500 Response
System Error
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