From 4c250307c2e36758e8d1770b66b2f7e5a8a794d5 Mon Sep 17 00:00:00 2001 From: Milton Hultgren Date: Tue, 9 Jan 2024 21:18:03 +0100 Subject: [PATCH] [monitoring] Add version header to Integration installation call (#174509) The initial install call fails because we don't pass the version header. --- .../pages/elasticsearch/ingest_pipeline_modal.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/monitoring/public/application/pages/elasticsearch/ingest_pipeline_modal.tsx b/x-pack/plugins/monitoring/public/application/pages/elasticsearch/ingest_pipeline_modal.tsx index 1a9f400049305..29207177d93ec 100644 --- a/x-pack/plugins/monitoring/public/application/pages/elasticsearch/ingest_pipeline_modal.tsx +++ b/x-pack/plugins/monitoring/public/application/pages/elasticsearch/ingest_pipeline_modal.tsx @@ -43,7 +43,10 @@ export const ingestPipelineTabOnClick = async ( }); if (!dashboardFound) { - const installPackage = () => services.http!.post('/api/fleet/epm/packages/elasticsearch'); + const installPackage = () => + services.http!.post('/api/fleet/epm/packages/elasticsearch', { + headers: { 'Elastic-Api-Version': '2023-10-31' }, + }); const ref = services.overlays!.openModal( toMountPoint(