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(optional):
boolean
Default Value:
false
Whether the method will create a 'deep clone' - A new instance will be created in this case. -
displayName(optional):
string
Default Value:
Shopping-Cart-Clone
The Display Name for the new cloned component instance. -
source(optional):
string
Default Value:
100011
The 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(optional):
object component
The associated component.
-
configuration(optional):
object configuration
Details of any configuration for this component instance.
-
displayName(optional):
string
Default Value:
ExampleOfClone
Display name for this new component instance. -
layout(optional):
string
Default Value:
oracle.doceng.json.BetterJsonNull@787a463a
The Associated layout for the new cloned component instance. -
links(optional):
array links
-
repositoryId(optional):
integer
Default Value:
400001
Repository ID for this new component instance.
Nested Schema : component
Type:
object
The associated component.
Show Source
-
displayName(optional):
string
Default Value:
ProductImageViewer
Display name for component. - hiddenFromSiteStudio(optional): boolean
-
id(optional):
integer
Default Value:
300200
ID attributed to this component. Can be the same as the repositoryId. -
name(optional):
string
Default Value:
ProductImageViewer
Actual name for this component. Can be different to Display Name, but best kept the same. -
namespace(optional):
string
Default Value:
occ.react
Namespace this component exists within. -
providesContext(optional):
string
Default Value:
oracle.doceng.json.BetterJsonNull@110a080e
Contexts provided relating to this component. -
repositoryId(optional):
integer
Default Value:
300200
Repository ID attributed to this component. -
requiresContext(optional):
string
Default Value:
product_context,container_context
Contexts required relating to this component. -
root(optional):
string
Default Value:
/clientApplications/core-commerce-reference-store/components/ProductImageViewer
Directory root for this component. -
source(optional):
integer
Default Value:
101
ID for the source used to create component. -
type(optional):
string
Default Value:
component
The type of repository item. Will always be component here.
Nested Schema : configuration
Type:
object
Details of any configuration for this component instance.
Show Source
-
thumbnailLocation(optional):
string
Default Value:
left
Location of the thumbnail for this component instance.
Nested Schema : items
Type:
Show Source
object
-
href(optional):
string
Default Value:
http://localhost:9080/ccadmin/v1/componentInstances/clone
Specifies the location (URL) of the external resource. -
rel(optional):
string
Default Value:
self
The 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(optional):
string
Default Value:
33001
The internal error code. -
message(optional):
string
Default Value:
Component instance with id: 100011 not found.
The HTTP error message. -
status(optional):
string
Default Value:
404
The HTTP status code.