Skip to content

Commit 03caeaa

Browse files
authored
[DOCS] Remove incorrect parms from put index template API docs (#53750)
Removes the `flat_settings` and `timeout` query parameters from the JSON spec and asciidoc docs for the put index template API. These parameters are not supported by the API.
1 parent 070ea7e commit 03caeaa

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

docs/reference/indices/templates.asciidoc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ Name of the index template to create.
9393
If `true`, this request cannot replace or update existing index templates.
9494
Defaults to `false`.
9595

96-
include::{docdir}/rest-api/common-parms.asciidoc[tag=flat-settings]
97-
9896
`order`::
9997
(Optional,integer)
10098
Order in which {es} applies this template
@@ -104,7 +102,7 @@ Templates with lower `order` values are merged first.
104102
Templates with higher `order` values are merged later,
105103
overriding templates with lower values.
106104

107-
include::{docdir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
105+
include::{docdir}/rest-api/common-parms.asciidoc[tag=master-timeout]
108106

109107

110108
[[put-index-template-api-request-body]]

rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_template.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,9 @@
3232
"description":"Whether the index template should only be added if new or can also replace an existing one",
3333
"default":false
3434
},
35-
"timeout":{
36-
"type":"time",
37-
"description":"Explicit operation timeout"
38-
},
3935
"master_timeout":{
4036
"type":"time",
4137
"description":"Specify timeout for connection to master"
42-
},
43-
"flat_settings":{
44-
"type":"boolean",
45-
"description":"Return settings in flat format (default: false)"
4638
}
4739
},
4840
"body":{

0 commit comments

Comments
 (0)