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