listSiteSettings
get
/ccadmin/v1/sitesettings
List Site Settings. Gets all site settings by ID.
Request
There are no request parameters for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : listSiteSettings_response
Type:
Show Source
object
-
description(optional):
string
Description of the settings item.
-
displayName(optional):
string
Display name of the settings item.
-
id(optional):
string
ID of the site settings extension.
-
repositoryId(optional):
string
Repository ID of the settings item.
-
values(optional):
array values
Array of sites configuration items.
Nested Schema : items
Type:
Show Source
object
-
defaultValue(optional):
string
The default value of the configuration item
-
helpText(optional):
string
The help text to be display against the configuration item
-
label(optional):
string
The label to be display for the configuration item
-
maxLength(optional):
integer
The maximum length of the configuration item
-
minLength(optional):
integer
The minimum length of the configuration item
-
name(optional):
string
The name the configuration item
-
options(optional):
array options
Array of options for an option type
-
regexText(optional):
string
Repository ID
-
repositoryId(optional):
string
Repository ID
-
required(optional):
string
If the configuration item is required or not
-
type(optional):
string
The type of the configuration value e.g string, option
Nested Schema : items
Type:
Show Source
object
-
label(optional):
string
The text to be displayed on the option
-
repositoryId(optional):
string
Repository ID
-
value(optional):
integer
The option value
Example Response (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|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code