listComponents
get
/ccadmin/v1/components
List Components. Endpoint for getting all components.
Request
Supported Media Types
- application/json
Query Parameters
-
includeAllInstances: boolean
If set to false (default is true), sends "numberOfInstances" property (where "numberOfInstances" represents count of instances of that component ) instead of "instances" property in response
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Nested Schema : items
Type:
Show Source
object
-
displayName:
string
The display name for the component.
-
global:
boolean
Is the component global.
- hiddenFromSiteStudio: boolean
-
instances:
array instances
The instances of the component.
-
isLatestVersion:
boolean
Is this the latest version of the component.
-
latestVersion:
integer
The latest version of the component.
-
repositoryId:
string
The component's repository ID.
-
slotType:
string
If component type of slot, the type of slot.
-
source:
integer
Is this component out of the box (100) or uploaded (101).
-
stackType:
string
If component type of stack, the type of stack.
-
type:
string
The type of component.
-
updatesAvailable:
boolean
Are there any updates available for this component.
-
version:
integer
The current version of the component.
-
widgetFamily:
string
If component type of widget, the family the widget belongs to.
-
widgetType:
string
If component type of widget, the type of widget.
Nested Schema : items
Type:
Show Source
object
-
displayName:
string
The name displayed for the component instance.
-
layoutAssociations:
array layoutAssociations
The layouts the component instances are associated with.
-
repositoryId:
string
The component's repository ID.
-
updateAvailable:
boolean
Is there an update available for this component instance.
-
version:
integer
The current version of the component instance.
Nested Schema : layoutAssociations
Type:
array
The layouts the component instances are associated with.
Show Source
Example Response (application/json)
{
"items":[
{
"isLatestVersion":true,
"updatesAvailable":false,
"slotType":"contentVariationSlot",
"latestVersion":1,
"instances":[
],
"displayName":"Content Variation Slot",
"repositoryId":"ContentVariationSlot",
"hiddenFromSiteStudio":false,
"global":false,
"source":100,
"type":"slot",
"version":1
},
{
"isLatestVersion":true,
"updatesAvailable":false,
"slotType":"experimentSlot",
"latestVersion":1,
"instances":[
],
"displayName":"Experiment Slot",
"repositoryId":"ExperimentSlot",
"hiddenFromSiteStudio":false,
"global":false,
"source":100,
"type":"slot",
"version":1
}
]
}
Default Response
The error response.
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code