diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_sample_configuration.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_sample_configuration.json index fccb9365bbdd0..7aa130b451a24 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_sample_configuration.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_sample_configuration.json @@ -5,7 +5,8 @@ "description": "Delete sampling configuration for an index or data stream" }, "stability": "experimental", - "visibility": "public", + "visibility": "feature_flag", + "feature_flag": "random_sampling", "headers": { "accept": [ "application/json" diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_all_sample_configuration.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_all_sample_configuration.json index be2a582df0069..ae7a809825ef7 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_all_sample_configuration.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_all_sample_configuration.json @@ -5,7 +5,8 @@ "description": "Get sampling configurations for all indices and data streams" }, "stability": "experimental", - "visibility": "public", + "visibility": "feature_flag", + "feature_flag": "random_sampling", "headers": { "accept": [ "application/json" diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_sample_configuration.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_sample_configuration.json index 83f032ad5d5f8..92d0bb872c8df 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_sample_configuration.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_sample_configuration.json @@ -5,7 +5,8 @@ "description": "Get sampling configuration for an index or data stream" }, "stability": "experimental", - "visibility": "public", + "visibility": "feature_flag", + "feature_flag": "random_sampling", "headers": { "accept": [ "application/json" diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_sample_configuration.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_sample_configuration.json index bfe4307ecc80d..882a7a036dfb3 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_sample_configuration.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_sample_configuration.json @@ -5,7 +5,8 @@ "description": "Configure sampling for an index or data stream" }, "stability": "experimental", - "visibility": "public", + "visibility": "feature_flag", + "feature_flag": "random_sampling", "headers": { "accept": [ "application/json"