Znode

PUT productfacets/{productId}

Bind the Associated facets to the product

Request Information

» Parameters

Name Description Additional information
productId The ID of the product.

Define this parameter in the request URI.

model The model of the product tags.

Define this parameter in the request body.

Request Body Formats

Sample:
	{
  "ProductId": 1,
  "FacetIds": {
    "$id": "2",
    "$values": [
      "sample string 1",
      "sample string 2",
      "sample string 3"
    ]
  },
  "FacetGroupId": 2,
  "FacetGroups": {
    "$id": "3",
    "$values": [
      {
        "$id": "4",
        "FacetGroupID": 1,
        "FacetGroupLabel": "sample string 2",
        "ControlTypeID": 1,
        "CatalogID": 1,
        "DisplayOrder": 1,
        "FacetGroupCategories": {
          "$id": "5",
          "$values": [
            {
              "$id": "6",
              "FacetGroupID": 1,
              "CategoryID": 2,
              "CategoryDisplayOrder": 1
            },
            {
              "$ref": "6"
            },
            {
              "$ref": "6"
            }
          ]
        },
        "FacetGroupFacets": {
          "$id": "7",
          "$values": [
            {
              "$id": "8",
              "FacetID": 1,
              "FacetGroupID": 1,
              "FacetName": "sample string 2",
              "FacetDisplayOrder": 1,
              "IconPath": "sample string 3"
            },
            {
              "$ref": "8"
            },
            {
              "$ref": "8"
            }
          ]
        },
        "FacetName": "sample string 3"
      },
      {
        "$ref": "4"
      },
      {
        "$ref": "4"
      }
    ]
  },
  "AssociatedFacets": {
    "$id": "9",
    "$values": [
      {
        "$ref": "8"
      },
      {
        "$ref": "8"
      },
      {
        "$ref": "8"
      }
    ]
  },
  "AssociatedFacetsSkus": {
    "$id": "10",
    "$values": [
      {
        "$id": "11",
        "FacetProductSKUID": 1,
        "FacetID": 1,
        "ProductID": 1,
        "SKUID": 1
      },
      {
        "$ref": "11"
      },
      {
        "$ref": "11"
      }
    ]
  }
}