2013-05-24 06:02:42 -04:00
|
|
|
{
|
|
|
|
"indices.template.put": {
|
|
|
|
"documentation": "",
|
|
|
|
"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": {
|
|
|
|
"description" : "The template definition"
|
|
|
|
}
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|