From e9c0bf1566604b93abda795e8a03ce094da9bf34 Mon Sep 17 00:00:00 2001 From: Russ Cam Date: Wed, 5 Aug 2020 17:00:14 +1000 Subject: [PATCH] Remove body from indices.create_data_stream REST spec (#60705) This commit removes the body property from the indices.create_data_stream.json REST API spec as the API does not support sending a body. Update the description of the API to remove that a data stream can be updated with the API - data streams can only be created with this API and attempting to update yields a `resource_already_exists_exception`. Closes #60704 (cherry picked from commit 2cab2e0ee094769852df31566dbe22b5df59d900) --- .../rest-api-spec/api/indices.create_data_stream.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/indices.create_data_stream.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/indices.create_data_stream.json index cd2c730d46f..693f91a561d 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/indices.create_data_stream.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/indices.create_data_stream.json @@ -2,7 +2,7 @@ "indices.create_data_stream":{ "documentation":{ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html", - "description":"Creates or updates a data stream" + "description":"Creates a data stream" }, "stability":"stable", "url":{ @@ -22,9 +22,6 @@ ] }, "params":{ - }, - "body":{ - "description":"The data stream definition" } } }