getElements
get
/ccadmin/v1/elements
Get Elements. Returns on all global or non-global Elements on the system.
Request
Supported Media Types
- application/json
Query Parameters
- Globals
-
Type:
booleanWhether global or non-global Elements are desired.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getElements_response
- items
-
Type:
arrayitemsAdditional Properties Allowed:The list of Fragments.
Nested Schema : items
Nested Schema : items
Type:
object- children
-
Type:
arraychildrenAdditional Properties Allowed:Array of fragments. - config
-
Type:
objectconfigAdditional Properties Allowed:Configuration object for fragment. - configOptions
-
Type:
arrayconfigOptionsAdditional Properties Allowed:Array of configurable options. - inline
-
Type:
booleanWhether inline or not. - previewText
-
Type:
stringPreview of the fragment instance. - repositoryId
-
Type:
integerRepository ID of fragment. - styles
-
Type:
objectstylesAdditional Properties Allowed:Styles of fragment. - tag
-
Type:
stringTag name of the fragment. - text
-
Type:
stringText related to fragment. - title
-
Type:
stringTitle of the fragment. - type
-
Type:
stringType of fragment.
Nested Schema : children
Nested Schema : config
Type:
objectConfiguration object for fragment.
- color
-
Type:
stringThe color of the text - display
-
Type:
stringThe display text - font-family
-
Type:
stringThe font family - font-style
-
Type:
stringThe font style - font-weight
-
Type:
stringThe font family - text-decoration
-
Type:
stringText decoration e.g underline, strike through
Nested Schema : configOptions
Nested Schema : styles
Type:
objectStyles of fragment.
- color
-
Type:
stringTitle of the fragment. - display
-
Type:
stringTitle of the fragment. - font-family
-
Type:
stringTitle of the fragment. - font-style
-
Type:
stringTitle of the fragment. - font-weight
-
Type:
stringTitle of the fragment. - text-decoration
-
Type:
stringTitle of the fragment.
Nested Schema : items
Type:
object- customTitle
-
Type:
stringCustom Title of the fragment. - inline
-
Type:
booleanWhether inline or not. - tag
-
Type:
stringTag name of the fragment. - text
-
Type:
stringText of the fragment. - title
-
Type:
stringTitle of the fragment.
Example application/json
[
{
"inline":true,
"children":[
],
"repositoryId":"company-logoFragment",
"styles":{
},
"customTitle":null,
"tag":"company-logo",
"text":null,
"title":"Company Logo",
"type":"fragment",
"previewText":null,
"config":{
},
"configOptions":[
]
},
{
"inline":true,
"children":[
],
"repositoryId":"company-nameFragment",
"styles":{
},
"customTitle":null,
"tag":"company-name",
"text":null,
"title":"Company Name",
"type":"fragment",
"previewText":"Example",
"config":{
},
"configOptions":[
"fontPicker",
"preview"
]
}
]
Default Response
The error response
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Response Payload returned by endpoint:
[
{
"inline": true,
"children": [],
"repositoryId": "company-logoFragment",
"styles": {},
"customTitle": null,
"tag": "company-logo",
"text": null,
"title": "Company Logo",
"type": "fragment",
"previewText": null,
"config": {},
"configOptions": []
},
{
"inline": true,
"children": [],
"repositoryId": "company-nameFragment",
"styles": {},
"customTitle": null,
"tag": "company-name",
"text": null,
"title": "Company Name",
"type": "fragment",
"previewText": "Example",
"config": {},
"configOptions": [
"fontPicker",
"preview"
]
}
]