saveSelfServiceCacheConfiguration
put
/ccadmin/v1/merchant/selfServiceCacheConfiguration
Save settings for the self service cache configuration.
Request
Supported Media Types
- application/json
Root Schema : saveSelfServiceCacheConfiguration_request
Type:
Show Source
object
-
cacheConfiguration:
object cacheConfiguration
regular expression of URIs to be cached with the refresh time in minutes.
-
enabled:
boolean
Indicates whether the self service cache is enabled.
Example:
{
"cacheConfiguration":{
"^/ccstore/v1/selfservice/quotes[?]limit=10&offset=0&totalResults=true&orderby=lastUpdatedDate_t:asc$":15,
"^/ccstore/v1/selfservice/subscriptionProducts[?]orderBy=EndDate:asc&q=SalesProductType='SUBSCRIPTION' AND Status in [(]'ORA_ACTIVE'[)] AND [(]EndDate BETWEEN '\\d{4}\\-(0?[1-9]|1[012])\\-(0?[1-9]|[12][0-9]|3[01])' AND '\\d{4}\\-(0?[1-9]|1[012])\\-(0?[1-9]|[12][0-9]|3[01])'[)]&totalResults=true$":5
},
"enabled":true
}
Nested Schema : cacheConfiguration
Type:
object
regular expression of URIs to be cached with the refresh time in minutes.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getSelfServiceCacheConfiguration_response
Type:
Show Source
object
-
cacheConfiguration:
object cacheConfiguration
regular expression of URIs to be cached with the refresh time in minutes.
-
defaultCacheConfiguration:
object defaultCacheConfiguration
regular expression of Default URIs to be cached with the refresh time in minutes.
-
enabled:
boolean
Indicates whether the self service cache is enabled.
Example:
{
"cacheConfiguration":{
"^/ccstore/v1/selfservice/quotes[?]limit=10&offset=0&totalResults=true&orderby=lastUpdatedDate_t:asc$":15,
"^/ccstore/v1/selfservice/subscriptionProducts[?]orderBy=EndDate:asc&q=SalesProductType='SUBSCRIPTION' AND Status in [(]'ORA_ACTIVE'[)] AND [(]EndDate BETWEEN '\\d{4}\\-(0?[1-9]|1[012])\\-(0?[1-9]|[12][0-9]|3[01])' AND '\\d{4}\\-(0?[1-9]|1[012])\\-(0?[1-9]|[12][0-9]|3[01])'[)]&totalResults=true$":5
},
"defaultCacheConfiguration":{
"^/ccstore/v1/selfservice/subscriptionProducts[?]orderBy=EndDate:asc&q=SalesProductType='SUBSCRIPTION' AND Status in [(]'ORA_ACTIVE'[)] AND [(]EndDate BETWEEN '\\d{4}\\-(0?[1-9]|1[012])\\-(0?[1-9]|[12][0-9]|3[01])' AND '\\d{4}\\-(0?[1-9]|1[012])\\-(0?[1-9]|[12][0-9]|3[01])'[)]&totalResults=true$":5
},
"enabled":true
}
Nested Schema : cacheConfiguration
Type:
object
regular expression of URIs to be cached with the refresh time in minutes.
Nested Schema : defaultCacheConfiguration
Type:
object
regular expression of Default URIs to be cached with the refresh time in minutes.
Example Response (application/json)
{
"cacheConfiguration":{
"^/ccstore/v1/selfservice/quotes[?]limit=10&offset=0&totalResults=true&orderby=lastUpdatedDate_t:asc$":15,
"^/ccstore/v1/selfservice/subscriptionProducts[?]orderBy=EndDate:asc&q=SalesProductType='SUBSCRIPTION' AND Status in [(]'ORA_ACTIVE'[)] AND [(]EndDate BETWEEN '\\d{4}\\-(0?[1-9]|1[012])\\-(0?[1-9]|[12][0-9]|3[01])' AND '\\d{4}\\-(0?[1-9]|1[012])\\-(0?[1-9]|[12][0-9]|3[01])'[)]&totalResults=true$":5
},
"defaultCacheConfiguration":{
"^/ccstore/v1/selfservice/subscriptionProducts[?]orderBy=EndDate:asc&q=SalesProductType='SUBSCRIPTION' AND Status in [(]'ORA_ACTIVE'[)] AND [(]EndDate BETWEEN '\\d{4}\\-(0?[1-9]|1[012])\\-(0?[1-9]|[12][0-9]|3[01])' AND '\\d{4}\\-(0?[1-9]|1[012])\\-(0?[1-9]|[12][0-9]|3[01])'[)]&totalResults=true$":5
},
"enabled":true
}
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|
|------------------|------------------|
|46000|A problem occurred when saving the data.|
|10002|Updating the value of defaultCacheConfiguration is not permitted.|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
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:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code