Skip to content

Commit 7cfc494

Browse files
[client] add objectOrganization to sighting creation
1 parent 9311410 commit 7cfc494

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pycti/entities/opencti_stix_sighting_relationship.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ def create(self, **kwargs):
533533
external_references = kwargs.get("externalReferences", None)
534534
x_opencti_stix_ids = kwargs.get("x_opencti_stix_ids", None)
535535
x_opencti_workflow_id = kwargs.get("x_opencti_workflow_id", None)
536+
granted_refs = kwargs.get("objectOrganization", None)
536537
update = kwargs.get("update", False)
537538

538539
self.opencti.app_logger.info(
@@ -569,6 +570,7 @@ def create(self, **kwargs):
569570
"externalReferences": external_references,
570571
"x_opencti_stix_ids": x_opencti_stix_ids,
571572
"x_opencti_workflow_id": x_opencti_workflow_id,
573+
"objectOrganization": granted_refs,
572574
"update": update,
573575
}
574576
},

0 commit comments

Comments
 (0)