Facetable Attribute Input

Facetable attribute for search.
JSON example
1{
2   "type" : "ProductCategory",
3   "nameOrId" : "Id",
4   "displayRank" : "1",
5   "displayType" : "CategoryTree"
6}
Properties
Name Type Description Required or Optional Available Version
displayRank Integer Display rank of the facet. Valid values are from 1 through 50. Values must be unique and sequential. Required 49.0
displayType String Display type of the facet. Values are:
  • CategoryTree
  • MultiSelect
Required 49.0
nameOrId String Developer name of the attribute. In version 49.0 and later, the ID of the attribute isn’t supported. Required 49.0
type String Type of attribute. Values are:
  • Custom
  • ProductAttribute
  • ProductCategory
  • Standard
When updating facetable attributes, you must include a ProductCategory facet with nameOrId set to Id and displayType set to categoryTree, as shown in the JSON example.
Required 49.0