createFacetList
post
/gsadmin/v1/{appName}/content/facets/{facetListName}
Create a facet list
Request
Supported Media Types
- application/json
Path Parameters
- appName
-
Type:
stringRequired:trueSpecifies the name of your application. For example, "cloud".- facetListName
Type:stringRequired:trueSpecifies the name of the new facet list. For example, "default".
Body Parameter
The facet list that defines an explicit order of facets at a given location.
Root Schema : FacetList
Type:
objectRepresents a facet order list.
- contentItem
-
Type:
objectcontentItemRequired:trueAdditional Properties Allowed: - ecr:createDate
-
Type:
string - ecr:lastModified
-
Type:
string - ecr:lastModifiedBy
-
Type:
string - ecr:type
-
Type:
stringRequired:trueDefault Value:content-itemAllowed Values:[ "content-item" ] - priority
-
Type:
integer(int32)Required:true - triggers
-
Type:
arraytriggersRequired:trueAdditional Properties Allowed: - workflowState
-
Type:
string
Nested Schema : contentItem
Type:
object- @type
-
Type:
stringRequired:trueDefault Value:GuidedNavigation - navigation
-
Type:
arraynavigationRequired:trueAdditional Properties Allowed: - showAll
-
Type:
boolean
Nested Schema : items
Type:
object- dvalIDs
-
Type:
arraydvalIDsAdditional Properties Allowed:Specifies a list of locations (facet or facet value IDs) in the storefront where the facet list is to be used. - exactLocation
-
Type:
boolean - matchmode
-
Type:
stringSpecifies the match mode to use for the search terms. The value should be one of the following: MATCHPHRASE, MATCHEXACT, MATCHALL. - searchTerms
-
Type:
stringSpecifies 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.
-
Type:
string
Security
- basicAuth
-
Type:
basicDescription:Basic username/password authentication.
Response
Supported Media Types
- application/json
201 Response
Indicates that the new facet list definition was successfully created.
Body
Root Schema : Response
Type:
object- message
-
Type:
string - status
-
Type:
integer(int32)
Examples
The following example shows how to create a facet list:
Request Body Example
The following shows how to create a facet list called Facet1.
{
"ecr:type": "content-item",
"workflowState": "ACTIVE",
"contentItem": {
"@type": "GuidedNavigation",
"showAll": false,
"navigation":
[
{
"@type": "RefinementMenu","@name": "Category",
"dimensionName": "product.category"
},
{
"@type": "RefinementMenu","@name": "Price Range",
"dimensionName": "product.priceRange"
},
{
"@type": "RefinementMenu","@name": "Brand",
"dimensionName": "product.brandName"
}
]
}
"triggers": [{
"exactLocation": true,
"dvalIDs": ["101022"]
}]
}