Updates a rule configuration.
put
/gsadmin/v1/{appName}/content/rankingRules/{Rule}
Request
Supported Media Types
- application/json
- application/zip
Path Parameters
-
Rule: string
Specifies the name of rule.
-
appName: string
Specifies the name of your application. For example, "cloud".
Definition of the ranking rule.
Root Schema : RankingRule
Match All
Show Source
-
object
BaseECR
-
object
RankingRule-allOf[1]
Configuration for dynamic ranking.
Nested Schema : BaseECR
Type:
Show Source
object-
ecr:createDate(optional):
string
Date this object was first created. Found in responses. Ignored in POST/PUT payloads.Example:
2018-01-01T13:41:03.858-04:00 -
ecr:lastModified(optional):
string
Date this object was last modified. Found in responses. Ignored in POST/PUT payloads.Example:
2018-01-01T13:41:03.858-04:00 -
ecr:lastModifiedBy(optional):
string
User who last modified this object. Found in responses. Ignored in POST/PUT payloads.Example:
admin
Nested Schema : RankingRule-allOf[1]
Type:
objectConfiguration for dynamic ranking.
Show Source
-
contentItem:
object contentItem
-
ecr:name(optional):
string
Example:
rankingRuleName -
ecr:type:
string
Default Value:
content-itemAllowed Values:[ "content-item" ] -
priority:
integer(int32)
-
triggers:
array triggers
-
workflowState(optional):
string
Nested Schema : contentItem
Type:
Show Source
object-
@type(optional):
string
Default Value:
RankModuleBoostBuryBlend -
blendFactors(optional):
array blendFactors
-
boostStrata(optional):
array boostStrata
Array of products to boost. The order should be respected
-
buryStrata(optional):
array buryStrata
Array of products to Bury. The order should be respected
-
showAll(optional):
boolean
Nested Schema : boostStrata
Type:
arrayArray of products to boost. The order should be respected
Show Source
Nested Schema : buryStrata
Type:
arrayArray of products to Bury. The order should be respected
Show Source
Nested Schema : items
Type:
Show Source
object-
@type:
string
Default Value:
DimValBlendFactorGroupAllowed Values:[ "PropertyBlendFactor", "DateBlendFactor", "DimValBlendFactorGroup" ] -
attribute:
string
-
items(optional):
array items
Nested Schema : items
Type:
Show Source
object-
@type:
string
Default Value:
DimValBlendFactorAllowed Values:[ "DimValBlendFactor" ] -
dvalID:
string
Example:
12345
Nested Schema : PropertyStrata
Type:
Show Source
object-
@type(optional):
string
Allowed Values:
[ "PropertyStrata" ]Strata typeExample:PropertyStrata -
attribute(optional):
string
Attribute to match for property strataExample:
product.respositoryId -
value(optional):
string
value to match in attributeExample:
123456
Nested Schema : items
Type:
Show Source
object-
dvalIDs(optional):
array dvalIDs
Specifies a list of locations (facet or facet value IDs) in the storefront where the facet list is to be used.
-
ecr:expanded:dimvals(optional):
array ecr:expanded:dimvals
-
exactLocation(optional):
boolean
-
matchmode(optional):
string
Specifies the match mode to use for the search terms. The value should be one of the following: MATCHPHRASE, MATCHEXACT, MATCHALL.
-
searchTerms(optional):
string
Specifies the search terms based location in the storefront where the facet list is to be used.
Nested Schema : dvalIDs
Type:
arraySpecifies a list of locations (facet or facet value IDs) in the storefront where the facet list is to be used.
Show Source
Nested Schema : ecr:expanded:dimvals
Type:
Show Source
array-
Array of:
ExpandedDimVal
Expanded dimval array corresponding to dimvalid or dimvalIds array
Nested Schema : ExpandedDimVal
Expanded dimval array corresponding to dimvalid or dimvalIds array
Match All
Show Source
-
allOf
DimVal
Expanded dimval array corresponding to dimvalid or dimvalIds array
-
object
ExpandedDimVal-allOf[1]
Nested Schema : DimVal
Expanded dimval array corresponding to dimvalid or dimvalIds array
Match All
Show Source
Nested Schema : BaseDimVal
Type:
Show Source
object-
displayName(optional):
string
Example:
US Catalog -
dvalID(optional):
string
Example:
235122
Nested Schema : DimVal-allOf[1]
Type:
Show Source
object-
dimensionId(optional):
string
Example:
12345 -
dimensionName(optional):
string
Example:
product.category
Security
-
basicAuth: basic
Type:
basicDescription:Basic username/password authentication.
Response
Supported Media Types
- application/json
202 Response
Rule updated successfully.