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: boolean
Whether 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
Nested Schema : items
Type: array
The list of Fragments.
Nested Schema : items
Type: object
Nested Schema : children
Type: array
Array of fragments.
Nested Schema : config
Type: object
Configuration object for fragment.
Nested Schema : configOptions
Type: array
Array of configurable options.
Nested Schema : styles
Type: object
Styles of fragment.
Nested Schema : items
Type: object
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
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

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"
    ]
  }
]