{
  "info": {
    "_postman_id": "0e74eb00-1487-43c3-aaf7-ed3b46b7a807",
    "name": "HawkSearch Hierarchy QuickStart Collection",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "12611794"
  },
  "item": [
    {
      "name": "Create Index",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "X-HawkSearch-ApiKey",
            "value": "{{API Key}}",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "\n",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://indexing-dev.hawksearch.net/api/v2/indexing/create",
          "protocol": "https",
          "host": [
            "indexing-dev",
            "hawksearch",
            "net"
          ],
          "path": [
            "api",
            "v2",
            "indexing",
            "create"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Bulk Product Creation",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "X-HawkSearch-ApiKey",
            "value": "{{API Key}}",
            "description": "API Key",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"IndexName\": \"{{current_index}}\",\n\"Items\": [{\n        \"key\": [\n            \"{{key}}\"\n        ],\n        \"title\": [\n            \"{{title}}\"\n        ],\n        \"sku\": [\n            \"{{sku}}\"\n        ],\n        \"description\": [\n            \"{{description}}\"\n        ],\n        \"image\": [\n            \"{{image}}\"\n        ],\n        \"brand\": [\n            \"{{brand}}\"\n        ],\n        \"color\": [\n            \"{{color}}\"\n        ],\n        \"price\": [\n            {{price}}\n        ],\n        \"URL\": [\n            \"{{url}}\"\n        ],\n        \"type\": [\n            \"{{type}}\"\n        ],\n        \"category\": [\n            \"{{category}}\"\n        ],\n        \"nested_category\": [\n            {{nested_category}}\n        ]\n    }]\n\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://indexing-dev.hawksearch.net/api/v2/indexing/index-items",
          "protocol": "https",
          "host": [
            "indexing-dev",
            "hawksearch",
            "net"
          ],
          "path": [
            "api",
            "v2",
            "indexing",
            "index-items"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Set Current Index",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "X-HawkSearch-ApiKey",
            "value": "{{API Key}}",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\r\n    \"IndexName\": \"{{current_index}}\"\r\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://indexing-dev.hawksearch.net/api/v2/indexing/set-current",
          "protocol": "https",
          "host": [
            "indexing-dev",
            "hawksearch",
            "net"
          ],
          "path": [
            "api",
            "v2",
            "indexing",
            "set-current"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Get Current Index",
      "protocolProfileBehavior": {
        "disableBodyPruning": true
      },
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "X-HawkSearch-ApiKey",
            "value": "{{API Key}}",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": ""
        },
        "url": {
          "raw": "https://indexing-dev.hawksearch.net/api/v2/indexing/current",
          "protocol": "https",
          "host": [
            "indexing-dev",
            "hawksearch",
            "net"
          ],
          "path": [
            "api",
            "v2",
            "indexing",
            "current"
          ]
        }
      },
      "response": []
    },
    {
      "name": "View Indexes",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "X-HawkSearch-ApiKey",
            "value": "{{API Key}}",
            "type": "text"
          },
          {
            "key": "",
            "value": "",
            "type": "text",
            "disabled": true
          }
        ],
        "url": {
          "raw": "https://indexing-dev.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": "{{API Key}}",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\r\n    \"IndexName\": \"{{old_index}}\"\r\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://indexing-dev.hawksearch.net/api/v2/indexing/delete-index",
          "protocol": "https",
          "host": [
            "indexing-dev",
            "hawksearch",
            "net"
          ],
          "path": [
            "api",
            "v2",
            "indexing",
            "delete-index"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Hierarchy Data",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "X-HawkSearch-ApiKey",
            "value": "{{API Key}}",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n\t\"IndexName\": \"{{current_index}}\",\n    \"Hierarchies\": [\n  {\n     \"HierarchyId\":\"{{HierarchyId}}\",\n\t \"Name\":\"{{Name}}\",\n\t \"ParentHierarchyId\":\"{{ParentHierarchyId}}\",\n\t \"IsActive\":{{IsActive}},\n     \"SortOrder\":{{SortOrder}}     \n  }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://indexing-dev.hawksearch.net/api/hierarchy/upsert",
          "protocol": "https",
          "host": [
            "indexing-dev",
            "hawksearch",
            "net"
          ],
          "path": [
            "api",
            "hierarchy",
            "upsert"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Rebuild Hierarchy",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json",
            "type": "text"
          },
          {
            "key": "Accept",
            "value": "application/json",
            "type": "text"
          },
          {
            "key": "X-HawkSearch-ApiKey",
            "value": "{{API Key}}",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\r\n\t\"IndexName\": \"{{current_index}}\"\r\n}"
        },
        "url": {
          "raw": "https://indexing-dev.hawksearch.net/api/hierarchy/rebuild",
          "protocol": "https",
          "host": [
            "indexing-dev",
            "hawksearch",
            "net"
          ],
          "path": [
            "api",
            "hierarchy",
            "rebuild"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Retrieve Hierarchy",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json",
            "type": "text"
          },
          {
            "key": "Accept",
            "value": "application/json",
            "type": "text"
          },
          {
            "key": "X-HawkSearch-ApiKey",
            "value": "{{API Key}}",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\r\n\t\"IndexName\": \"{{current_index}}\"\r\n}"
        },
        "url": {
          "raw": "https://indexing-dev.hawksearch.net/api/hierarchy/",
          "protocol": "https",
          "host": [
            "indexing-dev",
            "hawksearch",
            "net"
          ],
          "path": [
            "api",
            "hierarchy",
            ""
          ]
        }
      },
      "response": []
    }
  ]
}