getInstancesForComponent

get

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

Get instances of a component.

Request

Supported Media Types
Path Parameters
Query Parameters
  • If set to true (default is false), limits the amount of information gathered per instance.
  • If set to true (default is false), layout associations of the instances is passed in endpoint response.
  • This is the field to determine number of records to be fetched per REST call. If provided returns paginated response.
  • This field determines the offset/starting index from which data to be fetched. If provided returns paginated response.
  • If search provided (default is empty), returns paginated response matching the search query param with display name of instances.
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : getInstancesForComponent_response
Type: object
Show Source
Nested Schema : items
Type: array
Component Instance
Show Source
Nested Schema : items
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)
{
    "items":[
        {
            "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":{
                "webContent":"

Help Web Content Text

" }, "displayName":"help-web-content", "repositoryId":"100638", "usageCount":1 }, { "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":{ "webContent":"

Returns Refunds Web Content Text

" }, "displayName":"returns-refunds-web-content", "repositoryId":"100509", "usageCount":1 } ] }

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