@@ -769,15 +769,13 @@ def delete_relationship(
769769 relationship_id : Optional [str ] = None ,
770770 from_entity_id : Optional [str ] = None ,
771771 to_entity_id : Optional [str ] = None ,
772- timestamp : Optional [int ] = None ,
773772 ) -> Dict [str , Any ]:
774773 """Deletes a relationship between two entities.
775774
776775 args:
777776 relationship_id (str): The _id of the relationship to delete
778777 from_entity_id (str): The _id of the source entity
779778 to_entity_id (str): The _id of the target entity
780- timestamp (int, optional): Timestamp for the deletion
781779 """
782780 if not relationship_id :
783781 raise JupiterOneClientError ("relationship_id is required" )
@@ -792,17 +790,11 @@ def delete_relationship(
792790 raise JupiterOneClientError ("to_entity_id is required" )
793791 self ._validate_entity_id (to_entity_id , "to_entity_id" )
794792
795- if timestamp is not None :
796- if not isinstance (timestamp , int ) or timestamp <= 0 :
797- raise JupiterOneClientError ("timestamp must be a positive integer" )
798-
799793 variables : Dict [str , Any ] = {
800794 "relationshipId" : relationship_id ,
801795 "fromEntityId" : from_entity_id ,
802796 "toEntityId" : to_entity_id ,
803797 }
804- if timestamp is not None :
805- variables ["timestamp" ] = timestamp
806798
807799 response = self ._execute_query (DELETE_RELATIONSHIP , variables = variables )
808800 return response ["data" ]["deleteRelationship" ]
0 commit comments