@@ -596,7 +596,6 @@ def create_entity(self, **kwargs: Any) -> Dict[str, Any]:
596596 entity_key (str): Unique key for the entity
597597 entity_type (str): Value for _type of entity
598598 entity_class (str): Value for _class of entity
599- timestamp (int): Specify createdOn timestamp
600599 properties (dict): Dictionary of key/value entity properties
601600 """
602601 # Validate required parameters
@@ -623,21 +622,14 @@ def create_entity(self, **kwargs: Any) -> Dict[str, Any]:
623622 if "properties" in kwargs and kwargs ["properties" ] is not None :
624623 self ._validate_properties (kwargs ["properties" ])
625624
626- # Validate timestamp if provided
627- if "timestamp" in kwargs and kwargs ["timestamp" ] is not None :
628- if not isinstance (kwargs ["timestamp" ], int ) or kwargs ["timestamp" ] <= 0 :
629- raise JupiterOneClientError ("timestamp must be a positive integer" )
630625 variables = {
631626 "entityKey" : kwargs .pop ("entity_key" ),
632627 "entityType" : kwargs .pop ("entity_type" ),
633628 "entityClass" : kwargs .pop ("entity_class" ),
634629 }
635630
636- timestamp : int = kwargs .pop ("timestamp" , None )
637631 properties : Dict = kwargs .pop ("properties" , None )
638632
639- if timestamp :
640- variables .update (timestamp = timestamp )
641633 if properties :
642634 variables .update (properties = properties )
643635
0 commit comments