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
- description
-
Type:
stringDescription of the settings item. - displayName
-
Type:
stringDisplay name of the settings item. - id
-
Type:
stringID of the site settings extension. - repositoryId
-
Type:
stringRepository ID of the settings item. - values
-
Type:
arrayvaluesAdditional Properties Allowed:Array of sites configuration items.
Nested Schema : values
Nested Schema : items
Type:
object- defaultValue
-
Type:
stringThe default value of the configuration item - helpText
-
Type:
stringThe help text to be display against the configuration item - label
-
Type:
stringThe label to be display for the configuration item - maxLength
-
Type:
integerThe maximum length of the configuration item - minLength
-
Type:
integerThe minimum length of the configuration item - name
-
Type:
stringThe name the configuration item - options
-
Type:
arrayoptionsAdditional Properties Allowed:Array of options for an option type - regexText
-
Type:
stringRepository ID - repositoryId
-
Type:
stringRepository ID - required
-
Type:
stringIf the configuration item is required or not - type
-
Type:
stringThe type of the configuration value e.g string, option
Nested Schema : options
Nested Schema : items
Type:
object- label
-
Type:
stringThe text to be displayed on the option - repositoryId
-
Type:
stringRepository ID - value
-
Type:
integerThe option value
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- 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:
[
{
"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"
}
]