createComponentInstance

post

/ccadmin/v1/applications/{applicationId}/components/{componentId}/instances

Creates an instance of a component.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : createComponentInstance_request
Type: object
Show Source
Example:
{
    "displayName":"New Web Content"
}
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : createComponentInstance_response
Type: object
Show Source
Nested Schema : component
Type: object
The parent component.
Show Source
Nested Schema : configuration
Type: object
Configuration settings for the component instance
Nested Schema : layout
Type: object
The layout for the component, if any.
Example Response (application/json)
{
    "layout":null,
    "component":{
        "providesContext":null,
        "requiresContext":null,
        "displayName":"WebContent",
        "root":"/clientApplications/core-commerce-reference-store/components/WebContent",
        "repositoryId":"100739",
        "name":"WebContent",
        "namespace":"occ.react",
        "hiddenFromSiteStudio":false,
        "id":"100739",
        "source":101,
        "type":"component"
    },
    "configuration":{
    },
    "displayName":"New Web Content",
    "repositoryId":"900002",
    "usageCount":0
}

Default Response

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