All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rest-api-spec.api.indices.put_index_template.json Maven / Gradle / Ivy

The newest version!
{
  "indices.put_index_template":{
    "documentation":{
      "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-template.html",
      "description":"Creates or updates an index template."
    },
    "stability":"stable",
    "visibility":"public",
    "headers":{
      "accept": [ "application/json"],
      "content_type": ["application/json"]
    },
    "url":{
      "paths":[
        {
          "path":"/_index_template/{name}",
          "methods":[
            "PUT",
            "POST"
          ],
          "parts":{
            "name":{
              "type":"string",
              "description":"The name of the template"
            }
          }
        }
      ]
    },
    "params":{
      "create":{
        "type":"boolean",
        "description":"Whether the index template should only be added if new or can also replace an existing one",
        "default":false
      },
      "cause":{
        "type":"string",
        "description":"User defined reason for creating/updating the index template",
        "default":false
      },
      "master_timeout":{
        "type":"time",
        "description":"Specify timeout for connection to master"
      }
    },
    "body":{
      "description":"The template definition",
      "required":true
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy