updateFacetList
put
/gsadmin/v1/{appName}/content/facets/{facetListName}
Updates the given facet list.
Request
Supported Media Types
- application/json
Path Parameters
-
appName: string
Specifies the name of your application. For example, "cloud".
-
facetListName: string
Specifies the name of the facet list. For example, "default".
The facet list that defines an explicit order of facets at a given location.
Root Schema : FacetList
Type:
object
Represents a facet order list.
Show Source
-
contentItem:
object contentItem
-
ecr:createDate(optional):
string
-
ecr:lastModified(optional):
string
-
ecr:lastModifiedBy(optional):
string
-
ecr:type:
string
Default Value:
content-item
Allowed Values:[ "content-item" ]
-
priority:
integer(int32)
-
triggers:
array triggers
-
workflowState(optional):
string
Nested Schema : contentItem
Type:
Show Source
object
-
@type:
string
Default Value:
GuidedNavigation
- navigation: array navigation
-
showAll(optional):
boolean
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.
-
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:
array
Specifies a list of locations (facet or facet value IDs) in the storefront where the facet list is to be used.
Show Source
Security
-
basicAuth: basic
Type:
basic
Description:Basic username/password authentication.
Response
Supported Media Types
- application/json
202 Response
Indicates that the facet list definition was successfully updated.
Examples
The following example shows how to update a facet list:
Request Body Example
The following shows a sample request body to update a facet list called Facet1
.
{ "ecr:type": "content-collection-folder", "Facet1": { "workflowState": "ACTIVE", "ecr:lastModifiedBy": "admin", "ecr:lastModified": "2017-08-28T07:56:47.838-07:00", "priority": 100, "ecr:createDate": "2017-08-28T07:56:47.838-07:00", "ecr:type": "content-item", "navigation": [ { "@type": "RefinementMenu", "dimensionName": "product.category" }, { "@type": "RefinementMenu", "dimensionName": "product.brand" }, { "@type": "RefinementMenu", "dimensionName": "product.color" }, { "@type": "RefinementMenu", "dimensionName": "product.priceRange" } ] } }