Index template failing with "reason": "unknown key [index_patterns] for create index"

I am facing the unknown key for my index template creation time,

        "reason": "unknown key [index_patterns] for create index"

below is the top heading of my template

{
    "index_patterns" : [
      "data_center-*"
    ],
    "template": {
      "settings" : {
        "number_of_shards" : "1"
      },
      "mappings" : {
        "properties" : {
          "path" : {
            "type" : "keyword"
          },

i was following this for template creations

please suggest,

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.