Skip to content

Commit

Permalink
Added the clear_status() method to clear the signature's status
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-nr committed Oct 7, 2024
1 parent f8f01cb commit 3f14663
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions assemblyline_client/v4_client/module/signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,17 @@ def change_status(self, signature_id, status):
"""
return self._connection.get(api_path_by_module(self, signature_id, status))

def clear_status(self, signature_id):
"""\
Clear the user's status change of a signature
Required:
signature_id : ID of the signature to clear the status
Throws a Client exception if the signature does not exist.
"""
return self._connection.get(api_path_by_module(self, signature_id))

def delete(self, signature_id):
"""\
Delete a signature based off its ID
Expand Down

0 comments on commit 3f14663

Please sign in to comment.