diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index c4b1841ee3..88a6d384c0 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -7934,6 +7934,9 @@ }, { "$ref": "#/components/parameters/index-require_alias" + }, + { + "$ref": "#/components/parameters/index-require_data_stream" } ], "requestBody": { @@ -7998,6 +8001,9 @@ }, { "$ref": "#/components/parameters/index-require_alias" + }, + { + "$ref": "#/components/parameters/index-require_data_stream" } ], "requestBody": { @@ -12223,6 +12229,9 @@ }, { "$ref": "#/components/parameters/index-require_alias" + }, + { + "$ref": "#/components/parameters/index-require_data_stream" } ], "requestBody": { @@ -111034,6 +111043,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 bf312e2d8b..0365ada043 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -4032,6 +4032,9 @@ }, { "$ref": "#/components/parameters/index-require_alias" + }, + { + "$ref": "#/components/parameters/index-require_data_stream" } ], "requestBody": { @@ -4096,6 +4099,9 @@ }, { "$ref": "#/components/parameters/index-require_alias" + }, + { + "$ref": "#/components/parameters/index-require_data_stream" } ], "requestBody": { @@ -6377,6 +6383,9 @@ }, { "$ref": "#/components/parameters/index-require_alias" + }, + { + "$ref": "#/components/parameters/index-require_data_stream" } ], "requestBody": { @@ -66744,6 +66753,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 b6ea15ff7f..5869c490f6 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -30909,9 +30909,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 a29a430705..18654f5f17 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -247,12 +247,6 @@ ], "response": [] }, - "index": { - "request": [ - "Request: missing json spec query parameter 'require_data_stream'" - ], - "response": [] - }, "ingest.delete_geoip_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 885716d0fb..559811be75 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -663,6 +663,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 */ /**