fix: Use proper endpoint to unpublish event

Fix #1012
pull/1013/head
Raphaël Vinot 2023-06-13 14:47:28 +02:00
parent 7d1d8b6f38
commit c8989c2ab2
1 changed files with 1 additions and 1 deletions

View File

@ -450,7 +450,7 @@ class PyMISP:
:param event: event to unpublish
"""
event_id = get_uuid_or_id_from_abstract_misp(event)
response = self._prepare_request('POST', f'events/publish/{event_id}')
response = self._prepare_request('POST', f'events/unpublish/{event_id}')
return self._check_json_response(response)
def contact_event_reporter(self, event: Union[MISPEvent, int, str, UUID], message: str) -> Dict: