Clone a theme by ID

post

/ccadmin/v1/themes/{id}/clone

Returns a copy of the theme specified by the ID with the name specified in the request payload. This is the only method of creating a new theme.

Once cloned, the theme can be assigned as the theme of one or more sites, or it can be set as the agent theme.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : cloneTheme_request
Type: object
Show Source
Example:
{
    "name":"ClonedTheme"
}
Back to Top

Response

Supported Media Types

200 Response

Returned when the operation succeeds.
Body ()
Root Schema : cloneTheme_response
Type: object
Show Source
Example Response (application/json)
{
    "isAgentTheme":false,
    "thumbnail":null,
    "theme_additional_fonts":{
    },
    "notes":"",
    "is_active":false,
    "usingCodeView":false,
    "is_default":false,
    "associatedSites":[
    ],
    "clone_parent_name":"Dark Theme",
    "repositoryId":"100001",
    "name":"testClone",
    "is_custom":true,
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccadminui/v1/themes/darkTheme/clone"
        }
    ],
    "id":"100001",
    "clone_parent_id":"darkTheme",
    "compilationStatuses":[
    ]
}

Default Response

The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
Error CodeDescriptionPossible Fix
20306Name for new theme already exists.Choose a new, unique name.
20309New theme name required.Ensure theme name has been specified in the request payload body.
70004Specified theme in URI does not exist.Ensure a valid theme ID has been specified.
70014Internal error when creating new theme.See returned error messages for more information.

The error response:
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