diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 1633656d37..9237fc830b 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -8145,6 +8145,9 @@ }, { "$ref": "#/components/parameters/index-require_alias" + }, + { + "$ref": "#/components/parameters/index-require_data_stream" } ], "requestBody": { @@ -8211,6 +8214,9 @@ }, { "$ref": "#/components/parameters/index-require_alias" + }, + { + "$ref": "#/components/parameters/index-require_data_stream" } ], "requestBody": { @@ -12630,6 +12636,9 @@ }, { "$ref": "#/components/parameters/index-require_alias" + }, + { + "$ref": "#/components/parameters/index-require_data_stream" } ], "requestBody": { @@ -113615,6 +113624,16 @@ }, "style": "form" }, + "index-require_data_stream": { + "in": "query", + "name": "require_data_stream", + "description": "If `true`, the request's actions must target a data stream (existing or to be created).", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, "indices.analyze-index": { "in": "path", "name": "index", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index c010fe86b0..8fab70e1de 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -4149,6 +4149,9 @@ }, { "$ref": "#/components/parameters/index-require_alias" + }, + { + "$ref": "#/components/parameters/index-require_data_stream" } ], "requestBody": { @@ -4215,6 +4218,9 @@ }, { "$ref": "#/components/parameters/index-require_alias" + }, + { + "$ref": "#/components/parameters/index-require_data_stream" } ], "requestBody": { @@ -6588,6 +6594,9 @@ }, { "$ref": "#/components/parameters/index-require_alias" + }, + { + "$ref": "#/components/parameters/index-require_data_stream" } ], "requestBody": { @@ -68657,6 +68666,16 @@ }, "style": "form" }, + "index-require_data_stream": { + "in": "query", + "name": "require_data_stream", + "description": "If `true`, the request's actions must target a data stream (existing or to be created).", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, "indices.analyze-index": { "in": "path", "name": "index", diff --git a/output/schema/schema.json b/output/schema/schema.json index 503a739c7e..771a383a63 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -32033,9 +32033,22 @@ "namespace": "_builtins" } } + }, + { + "description": "If `true`, the request's actions must target a data stream (existing or to be created).", + "name": "require_data_stream", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } } ], - "specLocation": "_global/index/IndexRequest.ts#L35-L268" + "specLocation": "_global/index/IndexRequest.ts#L35-L273" }, { "kind": "response", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index e58840c661..d0aa0f915c 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -43,12 +43,6 @@ ], "response": [] }, - "index": { - "request": [ - "Request: missing json spec query parameter 'require_data_stream'" - ], - "response": [] - }, "ingest.get_ip_location_database": { "request": [ "Request: query parameter 'master_timeout' does not exist in the json spec" diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 5b0f6ea7b1..00ab0c9454 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -673,6 +673,7 @@ export interface IndexRequest extends RequestBase { version_type?: VersionType wait_for_active_shards?: WaitForActiveShards require_alias?: boolean + require_data_stream?: boolean body?: TDocument } diff --git a/specification/_global/index/IndexRequest.ts b/specification/_global/index/IndexRequest.ts index 644a52e81e..6a4dae61ec 100644 --- a/specification/_global/index/IndexRequest.ts +++ b/specification/_global/index/IndexRequest.ts @@ -259,6 +259,11 @@ export interface Request extends RequestBase { * @server_default false */ require_alias?: boolean + /** + * If `true`, the request's actions must target a data stream (existing or to be created). + * @server_default false + */ + require_data_stream?: boolean } /** @codegen_name document */ /**