Skip to content

Commit

Permalink
[DOCS] Remove incorrect parms from put index template API docs (#53750)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jrodewig authored Mar 18, 2020
1 parent 070ea7e commit 03caeaa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
4 changes: 1 addition & 3 deletions docs/reference/indices/templates.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ Name of the index template to create.
If `true`, this request cannot replace or update existing index templates.
Defaults to `false`.

include::{docdir}/rest-api/common-parms.asciidoc[tag=flat-settings]

`order`::
(Optional,integer)
Order in which {es} applies this template
Expand All @@ -104,7 +102,7 @@ Templates with lower `order` values are merged first.
Templates with higher `order` values are merged later,
overriding templates with lower values.

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


[[put-index-template-api-request-body]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,9 @@
"description":"Whether the index template should only be added if new or can also replace an existing one",
"default":false
},
"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":{
Expand Down

0 comments on commit 03caeaa

Please sign in to comment.