cloneLayout

post

/ccadmin/v1/layouts/{id}

Clone Layout. Clones a layout from the specified id

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : cloneLayout_request
Type: object
Show Source
Example:
{
    "properties":{
        "defaultPage":true,
        "notes":"Testing new layout",
        "displayName":"New Cart Layout"
    }
}
Nested Schema : properties
Type: object
The properties to be saved with this layout
Show Source
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : cloneLayout_response
Type: object
Show Source
Nested Schema : layout
Type: object
Layout Information
Show Source
Nested Schema : pageTypeItem
Type: object
Page Type Item
Show Source
Example Response (application/json)
{
    "layout":{
        "displayName":"New Cart Layout",
        "name":"ShoppingCartSummaryPageLayout",
        "repositoryId":"pl400002"
    },
    "defaultPage":true,
    "pageType":"cart",
    "route":"/New Cart Layout",
    "displayName":"New Cart Layout",
    "name":"New Cart Layout",
    "repositoryId":"pa100001",
    "pageTypeItem":{
        "repositoryId":"shoppingCartSummaryPageType"
    }
}

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| |------------------|------------------| |32016|Error cloning layout. ({0})| |32003|Error updating the configuration of a layout.| |32001|Error retrieving the layout by its ID.| |20032|No product id specified on item| |32010|The specified layout does not exist| |25100|Internal Error| |20030|internal Error| |32020|The specified page address {0} must be unique.| |32019|The specified display name must be unique|
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