2013-05-24 06:02:42 -04:00
|
|
|
{
|
2013-06-07 12:54:21 -04:00
|
|
|
"indices.put_template": {
|
2013-06-09 15:50:59 -04:00
|
|
|
"documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-templates/",
|
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
|
|
|
},
|
|
|
|
"timeout": {
|
2013-05-27 15:54:21 -04:00
|
|
|
"type" : "time",
|
|
|
|
"description" : "Explicit operation timeout"
|
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
|
|
|
}
|
|
|
|
}
|