OpenSearch/rest-api-spec/api/indices.put_template.json

40 lines
1.1 KiB
JSON
Raw Normal View History

{
"indices.put_template": {
2013-06-09 15:50:59 -04:00
"documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-templates/",
"methods": ["PUT", "POST"],
"url": {
"path": "/_template/{name}",
"paths": ["/_template/{name}"],
"parts": {
"name": {
"type" : "string",
"required" : true,
"description" : "The name of the template"
}
},
"params": {
"order": {
"type" : "number",
"description" : "The order for this template when merging multiple matching ones (higher numbers are merged later, overriding the lower numbers)"
},
"timeout": {
"type" : "time",
"description" : "Explicit operation timeout"
},
"master_timeout": {
"type" : "time",
"description" : "Specify timeout for connection to master"
},
"flat_settings": {
"type": "boolean",
"description": "Return settings in flat format (default: false)"
}
}
},
"body": {
2013-06-08 09:34:13 -04:00
"description" : "The template definition",
"required" : true
}
}
}