Skip to content

Commit c6853be

Browse files
committed
[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 855284c commit c6853be

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

docs/reference/indices/templates.asciidoc

+1-5
Original file line numberDiff line numberDiff line change
@@ -93,10 +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-
98-
include::{docdir}/rest-api/common-parms.asciidoc[tag=include-type-name]
99-
10096
`order`::
10197
(Optional,integer)
10298
Order in which {es} applies this template
@@ -106,7 +102,7 @@ Templates with lower `order` values are merged first.
106102
Templates with higher `order` values are merged later,
107103
overriding templates with lower values.
108104

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

111107

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

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

-8
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,9 @@
3636
"description":"Whether the index template should only be added if new or can also replace an existing one",
3737
"default":false
3838
},
39-
"timeout":{
40-
"type":"time",
41-
"description":"Explicit operation timeout"
42-
},
4339
"master_timeout":{
4440
"type":"time",
4541
"description":"Specify timeout for connection to master"
46-
},
47-
"flat_settings":{
48-
"type":"boolean",
49-
"description":"Return settings in flat format (default: false)"
5042
}
5143
},
5244
"body":{

0 commit comments

Comments
 (0)