{
  "info": {
    "_postman_id": "8cc5fffe-4509-453e-bbdc-23467b89ad6b",
    "name": "HawkSearch QuickStart Variant Collection TEST",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "12457858"
  },
  "item": [
    {
      "name": "Bulk Field Creation",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "X-HawkSearch-ApiKey",
            "value": "xxxx-xxxx-xxxx-xxxx-xxxx",
            "description": "API Key",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n        \"Name\": \"{{name}}\",\n        \"FieldType\": \"{{fieldtype}}\",\n        \"Label\":\"{{label}}\",\n        \"Type\":\"{{type}}\",\n        \"Boost\":{{boost}},\n        \"IsPrimaryKey\": \"{{isprimarykey}}\",\n        \"IsOutput\":\"{{isoutput}}\",\n        \"IsChild\":\"{{ischild}}\",\n        \"IsShingle\":\"{{isshingle}}\",\n        \"IsBestFragment\":\"{{isbestfragment}}\",\n        \"IsDictionary\":\"{{isdictionary}}\",\n        \"IsSort\":\"{{issort}}\",\n        \"IsPrefix\": \"{{isprefix}}\",\n        \"IsHidden\":\"{{ishidden}}\",\n        \"IsCompare\": \"{{iscompare}}\",\n        \"IsKeywordText\":\"{{iskeywordtext}}\",\n        \"IsQuery\":\"{{isquery}}\",\n        \"IsQueryText\":\"{{isquerytext}}\",\n        \"SkipCustom\": \"{{skipcustom}}\",\n        \"StripHtml\":\"{{striphtml}}\",\n        \"PreviewMapping\":\"{{previewmapping}}\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://test.hawksearch.net/api/v10/field",
          "protocol": "https",
          "host": [
            "test",
            "hawksearch",
            "net"
          ],
          "path": [
            "api",
            "v10",
            "field"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Bulk Facet Creation",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "X-HawkSearch-ApiKey",
            "value": "xxxx-xxxx-xxxx-xxxx-xxxx",
            "description": "API Key",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n        \"Name\": \"{{name}}\",\n        \"FacetType\": \"{{facettype}}\",\n        \"FieldType\":\"{{fieldtype}}\",\n        \"DisplayType\":\"{{displaytype}}\",\n        \"MaxCount\":{{maxcount}},\n        \"Field\":\"{{field}}\",\n        \"ExpandSelection\": \"{{expandselection}}\",\n        \"SortBy\": \"{{sortby}}\",\n        \"ShowFacetImageCount\": \"{{showfacetimagecount}}\",\n        \"IsCurrency\":\"{{iscurrency}}\",\n        \"IsNumeric\":\"{{isnumeric}}\",\n        \"IsSearch\":\"{{issearch}}\",\n        \"IsVisible\":\"{{isvisible}}\",\n        \"IsCollapsible\":\"{{iscollapsible}}\",\n        \"IsCollapsedDefault\": \"{{iscollapseddefault}}\",\n        \"MinHitCount\": {{minhitcount}},\n        \"ScrollHeight\": {{scrollheight}},\n        \"ScrollThreshold\": {{scrollthreshold}},\n        \"TruncateThreshold\": {{truncatethreshold}},\n        \"SearchThreshold\": {{searchthreshold}},\n        \"SortOrder\": {{sortorder}},\n        \"ShowSliderInputs\":\"{{showsliderinputs}}\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://test.hawksearch.net/api/v10/facet",
          "protocol": "https",
          "host": [
            "test",
            "hawksearch",
            "net"
          ],
          "path": [
            "api",
            "v10",
            "facet"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Create Index",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "X-HawkSearch-ApiKey",
            "value": "xxxx-xxxx-xxxx-xxxx-xxxx",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "\n",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://indexing-test.hawksearch.net/api/v2/indexing/create",
          "protocol": "https",
          "host": [
            "indexing-test",
            "hawksearch",
            "net"
          ],
          "path": [
            "api",
            "v2",
            "indexing",
            "create"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Bulk Create Variant Products",
      "request": {
        "auth": {
          "type": "noauth"
        },
        "method": "POST",
        "header": [
          {
            "key": "X-HawkSearch-ApiKey",
            "value": "xxxx-xxxx-xxxx-xxxx-xxxx",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\r\n\t\"IndexName\": \"outdoordemowithvariantstake2.20260416.201933\",\r\n\r\n\t\"Items\": [\r\n\r\n\t\t{\r\n\r\n\t\t\t\"key\": [\"{{key}}\"],\r\n\r\n\t\t\t\"brand\": [\"{{brand}}\"],\r\n\r\n\t\t\t\"description\": [\"{{description}}\"],\r\n\r\n\t\t\t\"name\": [\"{{name}}\"],\r\n\r\n            \"url\": [\"{{url}}\"],\r\n\r\n\t\t\t\"hawk_child_attributes\": [{\r\n\r\n\t\t\t\t\"sku_id\": [\"{{variant1_sku_id}}\"],\r\n\r\n\t\t\t\t\"price\": [{{variant1_price}}],\r\n\r\n\t\t\t\t\"product_color\": [\"{{variant1_product_color}}\"],\r\n\r\n                \"product_thumbnail\": [\"{{variant1_product_thumbnail}}\"],\r\n\r\n\t\t\t\t\"imageUrl\": [\"{{variant1_imageUrl}}\"]\r\n\r\n\t\t\t}, {\r\n\r\n\t\t\t\t\"sku_id\": [\"{{variant2_sku_id}}\"],\r\n\r\n\t\t\t\t\"price\": [\"{{variant2_price}}\"],\r\n\r\n\t\t\t\t\"product_color\": [\"{{variant2_product_color}}\"],\r\n\r\n                \"product_thumbnail\": [\"{{variant2_product_thumbnail}}\"],\r\n\r\n\t\t\t\t\"imageUrl\": [\"{{variant2_imageUrl}}\"]\r\n\r\n\t\t\t},{\r\n\r\n\t\t\t\t\"sku_id\": [\"{{variant3_sku_id}}\"],\r\n\r\n\t\t\t\t\"price\": [\"{{variant3_price}}\"],\r\n\r\n\t\t\t\t\"product_color\": [\"{{variant3_product_color}}\"],\r\n\r\n                \"product_thumbnail\": [\"{{variant3_product_thumbnail}}\"],\r\n\r\n\t\t\t\t\"imageUrl\": [\"{{variant3_imageUrl}}\"]\r\n\r\n\t\t\t}]\r\n\r\n\t\t}\r\n\t]\r\n\r\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://indexing-test.hawksearch.net/api/v2/indexing/index-items",
          "protocol": "https",
          "host": [
            "indexing-test",
            "hawksearch",
            "net"
          ],
          "path": [
            "api",
            "v2",
            "indexing",
            "index-items"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Set Current Index",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "X-HawkSearch-ApiKey",
            "value": "xxxx-xxxx-xxxx-xxxx-xxxx",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\r\n    \"IndexName\": \"name.xxxx.xxxx\"\r\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://indexing-test.hawksearch.net/api/v2/indexing/set-current",
          "protocol": "https",
          "host": [
            "indexing-test",
            "hawksearch",
            "net"
          ],
          "path": [
            "api",
            "v2",
            "indexing",
            "set-current"
          ]
        }
      },
      "response": []
    },
    {
      "name": "View Indexes",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "X-HawkSearch-ApiKey",
            "value": "xxxx-xxxx-xxxx-xxxx-xxxx",
            "type": "text"
          },
          {
            "key": "",
            "value": "",
            "type": "text",
            "disabled": true
          }
        ],
        "url": {
          "raw": "https://indexing-test.hawksearch.net/api/v2/indexing",
          "protocol": "https",
          "host": [
            "indexing-dev",
            "hawksearch",
            "net"
          ],
          "path": [
            "api",
            "v2",
            "indexing"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Delete Index",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "X-HawkSearch-ApiKey",
            "value": "xxxx-xxxx-xxxx-xxxx-xxxx",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\r\n    \"IndexName\": \"outdoordemowithvariantstake2.20260416.171013\"\r\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://indexing-test.hawksearch.net/api/v2/indexing/delete-index",
          "protocol": "https",
          "host": [
            "indexing-test",
            "hawksearch",
            "net"
          ],
          "path": [
            "api",
            "v2",
            "indexing",
            "delete-index"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Search",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "X-HawkSearch-ApiKey",
            "value": "xxxx-xxxx-xxxx-xxxx-xxxx",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\r\n    \"ClientGuid\": \"{{client_guid}}\",\r\n    \"IndexName\": \"{{index}}\",\r\n    \"Keyword\": \"Enter Keyword Here\"\r\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://searchapi-test.hawksearch.net/api/v2/search",
          "protocol": "https",
          "host": [
            "searchapi-test",
            "hawksearch",
            "net"
          ],
          "path": [
            "api",
            "v2",
            "search"
          ]
        }
      },
      "response": []
    }
  ]
}