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

Commit d4bd000

Browse files
[client] update field example
1 parent 308f6c8 commit d4bd000

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/update_observable_attributes.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,12 @@
5252
opencti_api_client.stix_cyber_observable.update_created_by(
5353
id=observable["id"], identity_id=author["id"]
5454
)
55+
56+
observable_sshkey = opencti_api_client.stix_cyber_observable.create(
57+
observableData={"type": "SSH-Key", "fingerprint_sha256": "sha256_test"}
58+
)
59+
60+
opencti_api_client.stix_cyber_observable.update_field(
61+
id=observable_sshkey.get("id"),
62+
input={"key": "fingerprint_sha256", "value": "sha256_test_edit_name"},
63+
)

0 commit comments

Comments
 (0)