From 5499a47401b0c02b0ae105bd56b4ed2dafa14edf Mon Sep 17 00:00:00 2001 From: Jan Monschke Date: Fri, 13 Oct 2023 09:03:04 +0200 Subject: [PATCH] [SecuritySolution] Fix broken delete timeline note request (#168739) ## Summary Fixes https://github.com/elastic/kibana/issues/168738 The delete request for timeline notes was missing the `version` header. --- .../timelines/components/open_timeline/note_previews/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/plugins/security_solution/public/timelines/components/open_timeline/note_previews/index.tsx b/x-pack/plugins/security_solution/public/timelines/components/open_timeline/note_previews/index.tsx index 2444d3b35addf..db6f02b37cd5f 100644 --- a/x-pack/plugins/security_solution/public/timelines/components/open_timeline/note_previews/index.tsx +++ b/x-pack/plugins/security_solution/public/timelines/components/open_timeline/note_previews/index.tsx @@ -112,6 +112,7 @@ function useDeleteNote(noteId: string | null | undefined) { return http.fetch('/api/note', { method: 'DELETE', body: JSON.stringify({ noteId: id }), + version: '2023-10-31', }); }, onSuccess: () => {