listSiteSettings

get

/ccadmin/v1/sitesettings

List Site Settings. Gets all site settings by ID.

Request

There are no request parameters for this operation.

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : listSiteSettings_response
Nested Schema : values
Type: array
Array of sites configuration items.
Nested Schema : items
Type: object
Nested Schema : options
Type: array
Array of options for an option type
Nested Schema : items
Type: object
Example application/json

[
    {
        "values":[
            {
                "helpText":"Enable the cart message.",
                "defaultValue":"true",
                "minLength":0,
                "name":"enabled",
                "repositoryId":"100005",
                "options":[
                ],
                "regexText":null,
                "label":"Enable",
                "type":"checkbox",
                "maxLength":1000,
                "required":false
            },
            {
                "helpText":"Define the coupon name.",
                "defaultValue":"SHIP100",
                "minLength":6,
                "name":"coupon",
                "repositoryId":"100006",
                "options":[
                ],
                "regexText":null,
                "label":"Coupon",
                "type":"text",
                "maxLength":10,
                "required":true
            },
            {
                "helpText":"Define the minimum spend for the coupon.",
                "defaultValue":"100",
                "minLength":0,
                "name":"minSpend",
                "repositoryId":"100007",
                "options":[
                ],
                "regexText":null,
                "label":"Minimum Spend",
                "type":"text",
                "maxLength":1000,
                "required":true
            },
            {
                "helpText":"Set the value for API key.",
                "defaultValue":null,
                "minLength":0,
                "name":"password",
                "repositoryId":"100008",
                "options":[
                ],
                "regexText":null,
                "label":"API Key",
                "type":"password",
                "maxLength":1000,
                "required":true
            },
            {
                "helpText":"The size of the banner.",
                "defaultValue":"s",
                "minLength":0,
                "name":"bannerSize",
                "repositoryId":"100009",
                "options":[
                    {
                        "repositoryId":"100006",
                        "label":"Small",
                        "value":"s"
                    },
                    {
                        "repositoryId":"100007",
                        "label":"Medium",
                        "value":"m"
                    },
                    {
                        "repositoryId":"100008",
                        "label":"Large",
                        "value":"l"
                    }
                ],
                "regexText":null,
                "label":"Banner Size",
                "type":"option",
                "maxLength":1000,
                "required":true
            }
        ],
        "id":"settingsdemo"
    },
    {
        "displayName":"Settings 1",
        "values":[
            {
                "helpText":"Enable the cart message.",
                "defaultValue":"true",
                "minLength":0,
                "name":"enabled",
                "repositoryId":"100005",
                "options":[
                ],
                "regexText":null,
                "label":"Enable",
                "type":"checkbox",
                "maxLength":1000,
                "required":false
            },
            {
                "helpText":"Define the coupon name.",
                "defaultValue":"SHIP100",
                "minLength":6,
                "name":"coupon",
                "repositoryId":"100006",
                "options":[
                ],
                "regexText":null,
                "label":"Coupon",
                "type":"text",
                "maxLength":10,
                "required":true
            }
        ],
        "repositoryId":"settings1",
        "description":"Sample Setting.",
        "id":"setting1"
    }
]
Default Response
The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |33032|Error retrieving all site settings|
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:

[
  {
    "values": [
      {
        "helpText": "Enable the cart message.",
        "defaultValue": "true",
        "minLength": 0,
        "name": "enabled",
        "repositoryId": "100005",
        "options": [],
        "regexText": null,
        "label": "Enable",
        "type": "checkbox",
        "maxLength": 1000,
        "required": false
      },
      {
        "helpText": "Define the coupon name.",
        "defaultValue": "SHIP100",
        "minLength": 6,
        "name": "coupon",
        "repositoryId": "100006",
        "options": [],
        "regexText": null,
        "label": "Coupon",
        "type": "text",
        "maxLength": 10,
        "required": true
      },
      {
        "helpText": "Define the minimum spend for the coupon.",
        "defaultValue": "100",
        "minLength": 0,
        "name": "minSpend",
        "repositoryId": "100007",
        "options": [],
        "regexText": null,
        "label": "Minimum Spend",
        "type": "text",
        "maxLength": 1000,
        "required": true
      },
      {
        "helpText": "Set the value for API key.",
        "defaultValue": null,
        "minLength": 0,
        "name": "password",
        "repositoryId": "100008",
        "options": [],
        "regexText": null,
        "label": "API Key",
        "type": "password",
        "maxLength": 1000,
        "required": true
      },
      {
        "helpText": "The size of the banner.",
        "defaultValue": "s",
        "minLength": 0,
        "name": "bannerSize",
        "repositoryId": "100009",
        "options": [
          {
            "repositoryId": "100006",
            "label": "Small",
            "value": "s"
          },
          {
            "repositoryId": "100007",
            "label": "Medium",
            "value": "m"
          },
          {
            "repositoryId": "100008",
            "label": "Large",
            "value": "l"
          }
        ],
        "regexText": null,
        "label": "Banner Size",
        "type": "option",
        "maxLength": 1000,
        "required": true
      }
    ],
    "id": "settingsdemo"
  },
  {
    "displayName": "Settings 1",
    "values": [
      {
        "helpText": "Enable the cart message.",
        "defaultValue": "true",
        "minLength": 0,
        "name": "enabled",
        "repositoryId": "100005",
        "options": [],
        "regexText": null,
        "label": "Enable",
        "type": "checkbox",
        "maxLength": 1000,
        "required": false
      },
      {
        "helpText": "Define the coupon name.",
        "defaultValue": "SHIP100",
        "minLength": 6,
        "name": "coupon",
        "repositoryId": "100006",
        "options": [],
        "regexText": null,
        "label": "Coupon",
        "type": "text",
        "maxLength": 10,
        "required": true
      }
    ],
    "repositoryId": "settings1",
    "description": "Sample Setting.",
    "id": "setting1"
  }
]