From 7ca0afc01f30057ddf7953ccedd4325b699763df Mon Sep 17 00:00:00 2001 From: pquentin <42327+pquentin@users.noreply.github.com> Date: Thu, 20 Mar 2025 04:06:48 +0000 Subject: [PATCH] Update rest-api-spec --- output/openapi/elasticsearch-openapi.json | 1 + output/openapi/elasticsearch-serverless-openapi.json | 1 + output/schema/schema-serverless.json | 1 + output/schema/schema.json | 1 + output/schema/validation-errors.json | 6 ------ specification/_json_spec/indices.put_template.json | 5 +++++ 6 files changed, 9 insertions(+), 6 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 0fc5510dda..453757bd86 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -101551,6 +101551,7 @@ "indices.put_template#cause": { "in": "query", "name": "cause", + "description": "User defined reason for creating/updating the index template", "deprecated": false, "schema": { "type": "string" diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 3592d021ab..833a35246e 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -60241,6 +60241,7 @@ "indices.put_template#cause": { "in": "query", "name": "cause", + "description": "User defined reason for creating/updating the index template", "deprecated": false, "schema": { "type": "string" diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index c2b8cb617a..fe74058e54 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -24135,6 +24135,7 @@ } }, { + "description": "User defined reason for creating/updating the index template", "name": "cause", "required": false, "type": { diff --git a/output/schema/schema.json b/output/schema/schema.json index dc3e61ecce..ca857937b9 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -137955,6 +137955,7 @@ } }, { + "description": "User defined reason for creating/updating the index template", "name": "cause", "required": false, "type": { diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 4ccda83648..d292413c58 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -669,12 +669,6 @@ ], "response": [] }, - "indices.put_template": { - "request": [ - "Request: query parameter 'cause' does not exist in the json spec" - ], - "response": [] - }, "indices.reload_search_analyzers": { "request": [ "Request: missing json spec query parameter 'resource'" diff --git a/specification/_json_spec/indices.put_template.json b/specification/_json_spec/indices.put_template.json index cdafd1963c..afc06749f8 100644 --- a/specification/_json_spec/indices.put_template.json +++ b/specification/_json_spec/indices.put_template.json @@ -34,6 +34,11 @@ "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": "" + }, "master_timeout": { "type": "time", "description": "Specify timeout for connection to master"