2013-05-24 06:02:42 -04:00
|
|
|
{
|
2013-06-07 12:54:21 -04:00
|
|
|
"indices.put_template": {
|
2014-01-22 08:40:31 -05:00
|
|
|
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/indices-templates.html",
|
2013-05-24 06:02:42 -04:00
|
|
|
"methods": ["PUT", "POST"],
|
|
|
|
"url": {
|
|
|
|
"path": "/_template/{name}",
|
|
|
|
"paths": ["/_template/{name}"],
|
|
|
|
"parts": {
|
|
|
|
"name": {
|
2013-05-27 15:54:21 -04:00
|
|
|
"type" : "string",
|
|
|
|
"required" : true,
|
|
|
|
"description" : "The name of the template"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"params": {
|
|
|
|
"order": {
|
2013-05-27 15:54:21 -04:00
|
|
|
"type" : "number",
|
|
|
|
"description" : "The order for this template when merging multiple matching ones (higher numbers are merged later, overriding the lower numbers)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2014-06-06 09:29:20 -04:00
|
|
|
"create" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Whether the index template should only be added if new or can also replace an existing one",
|
|
|
|
"default" : false
|
|
|
|
},
|
2013-05-24 06:02:42 -04:00
|
|
|
"timeout": {
|
2013-05-27 15:54:21 -04:00
|
|
|
"type" : "time",
|
|
|
|
"description" : "Explicit operation timeout"
|
2013-07-22 18:06:25 -04:00
|
|
|
},
|
|
|
|
"master_timeout": {
|
|
|
|
"type" : "time",
|
|
|
|
"description" : "Specify timeout for connection to master"
|
2014-01-06 11:50:57 -05:00
|
|
|
},
|
2014-06-06 09:29:20 -04:00
|
|
|
"flat_settings": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "Return settings in flat format (default: false)"
|
|
|
|
}
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
},
|
2013-05-27 15:54:21 -04:00
|
|
|
"body": {
|
2013-06-08 09:34:13 -04:00
|
|
|
"description" : "The template definition",
|
|
|
|
"required" : true
|
2013-05-27 15:54:21 -04:00
|
|
|
}
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|