Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 42b15ee

Browse files
author
Samuel Hassine
committed
[client] Introduce custom properties on Stix Core Relationships list
1 parent 8560bf8 commit 42b15ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pycti/entities/opencti_stix_core_relationship.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ def list(self, **kwargs):
289289
after = kwargs.get("after", None)
290290
order_by = kwargs.get("orderBy", None)
291291
order_mode = kwargs.get("orderMode", None)
292+
custom_attributes = kwargs.get("customAttributes", None)
292293
get_all = kwargs.get("getAll", False)
293294
with_pagination = kwargs.get("withPagination", False)
294295
if get_all:
@@ -311,7 +312,7 @@ def list(self, **kwargs):
311312
edges {
312313
node {
313314
"""
314-
+ self.properties
315+
+ (custom_attributes if custom_attributes is not None else self.properties)
315316
+ """
316317
}
317318
}

0 commit comments

Comments
 (0)