cloneComponentInstance
post
/ccadmin/v1/componentInstances/clone
Clone a new instance for a component.
Request
Supported Media Types
- application/json
Request body for cloneComponentInstance endpoint.
Root Schema : cloneComponentInstance_request
Type:
Show Source
object-
deepClone:
boolean
Default Value:
falseWhether the method will create a 'deep clone' - A new instance will be created in this case. -
displayName:
string
Default Value:
Shopping-Cart-CloneThe Display Name for the new cloned component instance. -
source:
string
Default Value:
100011The ID of the component instance to be cloned.
Response
Supported Media Types
- application/json
200 Response
The response returned upon successfully cloning a component instance.
Root Schema : cloneComponentInstance_okResponse
Type:
Show Source
object-
component:
object component
The associated component.
-
configuration:
object configuration
Details of any configuration for this component instance.
-
displayName:
string
Default Value:
ExampleOfCloneDisplay name for this new component instance. -
layout:
string
Default Value:
oracle.doceng.json.BetterJsonNull@21140225The Associated layout for the new cloned component instance. -
links:
array links
-
repositoryId:
integer
Default Value:
400001Repository ID for this new component instance.
Nested Schema : component
Type:
objectThe associated component.
Show Source
-
displayName:
string
Default Value:
ProductImageViewerDisplay name for component. - hiddenFromSiteStudio: boolean
-
id:
integer
Default Value:
300200ID attributed to this component. Can be the same as the repositoryId. -
name:
string
Default Value:
ProductImageViewerActual name for this component. Can be different to Display Name, but best kept the same. -
namespace:
string
Default Value:
occ.reactNamespace this component exists within. -
providesContext:
string
Default Value:
oracle.doceng.json.BetterJsonNull@35d7dc91Contexts provided relating to this component. -
repositoryId:
integer
Default Value:
300200Repository ID attributed to this component. -
requiresContext:
string
Default Value:
product_context,container_contextContexts required relating to this component. -
root:
string
Default Value:
/clientApplications/core-commerce-reference-store/components/ProductImageViewerDirectory root for this component. -
source:
integer
Default Value:
101ID for the source used to create component. -
type:
string
Default Value:
componentThe type of repository item. Will always be component here.
Nested Schema : configuration
Type:
objectDetails of any configuration for this component instance.
Show Source
-
thumbnailLocation:
string
Default Value:
leftLocation of the thumbnail for this component instance.
Nested Schema : items
Type:
Show Source
object-
href:
string
Default Value:
http://localhost:9080/ccadmin/v1/componentInstances/cloneSpecifies the location (URL) of the external resource. -
rel:
string
Default Value:
selfThe relationship between the current document and the linked document/resource.
404 Response
The error response returned when ID value is not recognised.
Root Schema : cloneComponentInstance_doesNotExistResponse
Type:
Show Source
object-
errorCode:
string
Default Value:
33001The internal error code. -
message:
string
Default Value:
Component instance with id: 100011 not found.The HTTP error message. -
status:
string
Default Value:
404The HTTP status code.