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

Commit 0c1a68f

Browse files
author
Samuel Hassine
committed
[client] Change the name of the mutation
1 parent dde696e commit 0c1a68f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pycti/entities/opencti_report.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def add_stix_entity(self, **kwargs):
532532
"info", "Adding Stix-Entity {" + entity_id + "} to Report {" + id + "}",
533533
)
534534
query = """
535-
mutation ReportEdit($id: ID!, $input: RelationAddInput) {
535+
mutation ReportEditRelationAdd($id: ID!, $input: RelationAddInput) {
536536
reportEdit(id: $id) {
537537
relationAdd(input: $input) {
538538
id
@@ -589,7 +589,7 @@ def add_stix_observable(self, **kwargs):
589589
+ "}",
590590
)
591591
query = """
592-
mutation ReportEdit($id: ID!, $input: RelationAddInput) {
592+
mutation ReportEditRelationAdd($id: ID!, $input: RelationAddInput) {
593593
reportEdit(id: $id) {
594594
relationAdd(input: $input) {
595595
id

pycti/entities/opencti_stix_entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ def add_external_reference(self, **kwargs):
605605
+ "}",
606606
)
607607
query = """
608-
mutation StixEntityAddRelation($id: ID!, $input: RelationAddInput) {
608+
mutation StixEntityEditRelationAdd($id: ID!, $input: RelationAddInput) {
609609
stixEntityEdit(id: $id) {
610610
relationAdd(input: $input) {
611611
id

0 commit comments

Comments
 (0)