getCustomSiteSettings

get

/ccadmin/v1/sitesettings/{id}

Get Custom Site Settings. Get site settings by ID.

Request

Supported Media Types
Path Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : getCustomSiteSettings_response
Type: object
Show Source
Nested Schema : config
Type: array
Array of sites configuration items.
Show Source
Nested Schema : data
Type: object
Dynamic Object containing the instance data for this site settings, see sample response
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : options
Type: array
Array of options for an option type
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "data":{
        "password":"Password02",
        "coupon":"SHIP101",
        "minSpend":"101",
        "bannerSize":"m",
        "enabled":true
    },
    "config":{
        "displayName":"Some Settings!",
        "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
            }
        ],
        "repositoryId":"settingsdemo",
        "description":"Here are some settings.",
        "id":"settingsdemo"
    }
}

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| |------------------|------------------| |33061|Could not get site settings for the id|
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