deleteCollection

delete

/ccadmin/v1/collections/{id}

Delete Collection. Delete a collection by ID.

Request

Supported Media Types
  • application/json
Path Parameters
id
Type: string
Required: true
ID of collection to be deleted.
Query Parameters
catalogId
Type: string
Required: true
ID of catalog.

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Default Response
The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |20169|Internal Error| |20162|Attempted to delete a collection {0} with child collections. Collections must have no children to be deleted| |20161|Collection Id is invalid or non-existent| |20160|Collection Id passed is null or empty|
Body
Root Schema : errorModel
Type: object
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object