Skip to content

Commit

Permalink
fix: Use proper endpoint to unpublish event
Browse files Browse the repository at this point in the history
Fix #1012
  • Loading branch information
Rafiot committed Jun 13, 2023
1 parent 7d1d8b6 commit c8989c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymisp/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ def unpublish(self, event: Union[MISPEvent, int, str, UUID]) -> Dict:
: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:
Expand Down

0 comments on commit c8989c2

Please sign in to comment.