cloneComponentInstance

post

/ccadmin/v1/componentInstances/clone

Clone a new instance for a component.

Request

Supported Media Types
Body ()
Request body for cloneComponentInstance endpoint.
Root Schema : cloneComponentInstance_request
Type: object
Show Source
  • Default Value: false
    Whether the method will create a 'deep clone' - A new instance will be created in this case.
  • Default Value: Shopping-Cart-Clone
    The Display Name for the new cloned component instance.
  • Default Value: 100011
    The ID of the component instance to be cloned.
Back to Top

Response

Supported Media Types

200 Response

The response returned upon successfully cloning a component instance.
Body ()
Root Schema : cloneComponentInstance_okResponse
Type: object
Show Source
Nested Schema : component
Type: object
The associated component.
Show Source
  • Default Value: ProductImageViewer
    Display name for component.
  • Default Value: false
    Whether this is hidden from Design Studio in the admin site.
  • Default Value: 300200
    ID attributed to this component. Can be the same as the repositoryId.
  • Default Value: ProductImageViewer
    Actual name for this component. Can be different to Display Name, but best kept the same.
  • Default Value: occ.react
    Namespace this component exists within.
  • Default Value: oracle.doceng.json.BetterJsonNull@e207f84
    Contexts provided relating to this component.
  • Default Value: 300200
    Repository ID attributed to this component.
  • Default Value: product_context,container_context
    Contexts required relating to this component.
  • Default Value: /clientApplications/core-commerce-reference-store/components/ProductImageViewer
    Directory root for this component.
  • Default Value: 101
    ID for the source used to create component.
  • 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

404 Response

The error response returned when ID value is not recognised.
Body ()
Root Schema : cloneComponentInstance_doesNotExistResponse
Type: object
Show Source
Back to Top