Merge pull request #410 from tomking2/feature/delete_sharing_group

chg: Allow for deletion of security group
pull/418/head
Raphaël Vinot 2019-07-04 10:58:48 +02:00 committed by GitHub
commit 24f31e44a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -2284,6 +2284,12 @@ class PyMISP(object):
response = self._prepare_request('POST', url, json.dumps(to_jsonify))
return self._check_response(response)
def delete_sharing_group(self, sharing_group):
"""Delete a sharing group
:sharing_group: Sharing group's local instance ID, or Sharing group's global uuid
"""
return self._rest_delete("sharing_groups", sharing_group)
# ###################
# ### Objects ###
# ###################