Replaces GET verb with POST to match the rest of the documentation. (#85926)
Both the documentation and the code (including tests) mention this should be a POST request. Proposing the same changes that were proposed in https://github.com/elastic/kibana/pull/85790 for backports to 7.x releases.
This commit is contained in:
parent
2df32de3a9
commit
70157ec607
|
@ -17,7 +17,7 @@ To add the `index.query.default_field` setting to an {es} index, submit a POST r
|
|||
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
GET /api/upgrade_assistant/add_query_default_field/myIndex
|
||||
POST /api/upgrade_assistant/add_query_default_field/myIndex
|
||||
{
|
||||
"fieldTypes": ["text", "keyword"], <1>
|
||||
"otherFields": ["myField.*"] <2>
|
||||
|
@ -83,7 +83,7 @@ Make the following request to {kib}:
|
|||
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
GET /api/upgrade_assistant/add_query_default_field/myIndex
|
||||
POST /api/upgrade_assistant/add_query_default_field/myIndex
|
||||
{
|
||||
"fieldTypes": ["text", "long"],
|
||||
"otherFields": ["field2"]
|
||||
|
|
Loading…
Reference in a new issue