add method change_threat_level

pull/7/head
Sébastien Larinier 2016-03-15 17:17:04 +01:00
parent 39c06a7d24
commit ba14cf1aaa
1 changed files with 7 additions and 0 deletions

View File

@ -363,6 +363,13 @@ class PyMISP(object):
return self._check_response(response)
def change_threat_level(self, event, threat_level_id):
event['Event']['threat_level_id'] = threat_level_id
self._prepare_update(event)
response = self.update_event(event['Event']['id'], event)
return self._check_response(response)
# ##### File attributes #####
def _send_attributes(self, event, attributes, proposal=False):