added change_analysis_status API

pull/210/head
Matteo Lodi 2018-03-26 16:38:26 +02:00
parent 22c874e479
commit 84adf0f708
1 changed files with 6 additions and 0 deletions

View File

@ -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)