createFacetList

post

/gsadmin/v1/{appName}/content/facets/{facetListName}

Create a facet list

Request

Supported Media Types
Path Parameters
Body ()
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
Nested Schema : contentItem
Type: object
Show Source
Nested Schema : triggers
Type: array
Show Source
Nested Schema : navigation
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
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
Back to Top

Response

Supported Media Types

201 Response

Indicates that the new facet list definition was successfully created.
Body ()
Root Schema : Response
Type: object
Show Source
Back to Top

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"]
    }]
}
Back to Top