From 83828af7effefb8b79a39d4c2ffb88df6c5ffc2c Mon Sep 17 00:00:00 2001 From: Andrei Dan Date: Thu, 30 Apr 2020 14:23:59 +0100 Subject: [PATCH] Update template v2 api rest spec (#55948) (#56008) This removed the specification of `order` as it is not a parameter of the v2 put template api (the priority is the equivalent of `order` and is defined in the body) and add a bit of description for the `cause` parameter (which is currently used as a cluster update task tracking) (cherry picked from commit e3e9782b2059e28bc4a08be2232c1e5baecad3d6) Signed-off-by: Andrei Dan --- .../rest-api-spec/api/indices.put_index_template.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_index_template.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_index_template.json index 498a5989068..3f758e18737 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_index_template.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_index_template.json @@ -23,15 +23,16 @@ ] }, "params":{ - "order":{ - "type":"number", - "description":"The order for this template when merging multiple matching ones (higher numbers are merged later, overriding the lower numbers)" - }, "create":{ "type":"boolean", "description":"Whether the index template should only be added if new or can also replace an existing one", "default":false }, + "cause":{ + "type":"string", + "description":"User defined reason for creating/updating the index template", + "default":false + }, "master_timeout":{ "type":"time", "description":"Specify timeout for connection to master"