diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 1633656d37..3b4f344122 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -4365,6 +4365,9 @@ { "$ref": "#/components/parameters/cluster.put_component_template-create" }, + { + "$ref": "#/components/parameters/cluster.put_component_template-cause" + }, { "$ref": "#/components/parameters/cluster.put_component_template-master_timeout" } @@ -4394,6 +4397,9 @@ { "$ref": "#/components/parameters/cluster.put_component_template-create" }, + { + "$ref": "#/components/parameters/cluster.put_component_template-cause" + }, { "$ref": "#/components/parameters/cluster.put_component_template-master_timeout" } @@ -111981,6 +111987,16 @@ }, "style": "form" }, + "cluster.put_component_template-cause": { + "in": "query", + "name": "cause", + "description": "User defined reason for create the component template.", + "deprecated": false, + "schema": { + "type": "string" + }, + "style": "form" + }, "cluster.put_component_template-master_timeout": { "in": "query", "name": "master_timeout", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index c010fe86b0..b5dde0f994 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -1710,6 +1710,9 @@ { "$ref": "#/components/parameters/cluster.put_component_template-create" }, + { + "$ref": "#/components/parameters/cluster.put_component_template-cause" + }, { "$ref": "#/components/parameters/cluster.put_component_template-master_timeout" } @@ -1739,6 +1742,9 @@ { "$ref": "#/components/parameters/cluster.put_component_template-create" }, + { + "$ref": "#/components/parameters/cluster.put_component_template-cause" + }, { "$ref": "#/components/parameters/cluster.put_component_template-master_timeout" } @@ -67814,6 +67820,16 @@ }, "style": "form" }, + "cluster.put_component_template-cause": { + "in": "query", + "name": "cause", + "description": "User defined reason for create the component template.", + "deprecated": false, + "schema": { + "type": "string" + }, + "style": "form" + }, "cluster.put_component_template-master_timeout": { "in": "query", "name": "master_timeout", diff --git a/output/schema/schema.json b/output/schema/schema.json index 503a739c7e..969a227136 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -123110,6 +123110,19 @@ } } }, + { + "description": "User defined reason for create the component template.", + "name": "cause", + "required": false, + "serverDefault": "api", + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, { "description": "Period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "master_timeout", @@ -123124,7 +123137,7 @@ } } ], - "specLocation": "cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L105" + "specLocation": "cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L110" }, { "kind": "response", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index e58840c661..5c24f1d2a9 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -13,12 +13,6 @@ ], "response": [] }, - "cluster.put_component_template": { - "request": [ - "Request: missing json spec query parameter 'cause'" - ], - "response": [] - }, "create": { "request": [ "Request: query parameter 'if_primary_term' does not exist in the json spec", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 5b0f6ea7b1..c2b983e043 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -9611,6 +9611,7 @@ export type ClusterPostVotingConfigExclusionsResponse = boolean export interface ClusterPutComponentTemplateRequest extends RequestBase { name: Name create?: boolean + cause?: string master_timeout?: Duration body?: { template: IndicesIndexState diff --git a/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts b/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts index cf84753855..4701e5cadb 100644 --- a/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts +++ b/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts @@ -72,6 +72,11 @@ export interface Request extends RequestBase { * If `true`, this request cannot replace or update existing component templates. * @server_default false */ create?: boolean + /** + * User defined reason for create the component template. + * @server_default api + */ + cause?: string /** * Period to wait for a connection to the master node. * If no response is received before the timeout expires, the request fails and returns an error.