moveCollection

put

/ccadmin/v1/collections

Move Collection. Update the links from a child collection to parent categories.

Request

Supported Media Types
Body ()
Root Schema : moveCollection_request
Type: object
Show Source
Example:
{
    "parent":"catMen",
    "fromParent":"cat50001",
    "operation":"move",
    "child":"cat70004"
}
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : moveCollection_response
Type: object
Show Source
Example Response (application/json)
{
    "success":true
}

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| |------------------|------------------| |20089|Organize Child Internal Error| |20085|Collection does not have parent collection| |20084|Invalid index provided. Index should be -1 or greater| |20083|Child collection cannot be assigned to parent collection because it would create a circular collection structure| |20071|Collection Id is invalid or non-existent| |20070|Collection Id passed is null or empty| |20081|Cannot find child collection| |20080|Child collection passed is null| |20079|It is not allowed to move a root category| |20082|Attempt to move child to its current location| |20086|Parent collection to link is null| |20087|Parent collection to update is null| |20088|Invalid operation|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top