updateFacetList

put

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

Updates the given 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

202 Response

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

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