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

Commit 3274506

Browse files
authored
[client] Add content in report creation (#519)
1 parent 0829b0c commit 3274506

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pycti/entities/opencti_report.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,7 @@ def create(self, **kwargs):
685685
modified = kwargs.get("modified", None)
686686
name = kwargs.get("name", None)
687687
description = kwargs.get("description", None)
688+
content = kwargs.get("content", None)
688689
report_types = kwargs.get("report_types", None)
689690
published = kwargs.get("published", None)
690691
x_opencti_reliability = kwargs.get("x_opencti_reliability", None)
@@ -722,6 +723,7 @@ def create(self, **kwargs):
722723
"modified": modified,
723724
"name": name,
724725
"description": description,
726+
"content": content,
725727
"report_types": report_types,
726728
"published": published,
727729
"x_opencti_reliability": x_opencti_reliability,
@@ -883,6 +885,9 @@ def import_from_stix2(self, **kwargs):
883885
)
884886
if "description" in stix_object
885887
else None,
888+
content=self.opencti.stix2.convert_markdown(stix_object["content"])
889+
if "content" in stix_object
890+
else None,
886891
report_types=stix_object["report_types"]
887892
if "report_types" in stix_object
888893
else None,

0 commit comments

Comments
 (0)