From 84adf0f7083fe0fdc7ac0268a3940879591d4681 Mon Sep 17 00:00:00 2001 From: Matteo Lodi Date: Mon, 26 Mar 2018 16:38:26 +0200 Subject: [PATCH] added change_analysis_status API --- pymisp/api.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pymisp/api.py b/pymisp/api.py index 0920bbc..ff0a63c 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -418,6 +418,12 @@ class PyMISP(object): e.threat_level_id = threat_level_id return self.update(e) + def change_analysis_status(self, event, analysis_status): + """Change the analysis status of an event""" + e = self._make_mispevent(event) + e.analysis = analysis_status + return self.update(e) + def change_sharing_group(self, event, sharing_group_id): """Change the sharing group of an event""" e = self._make_mispevent(event)