Description
I am trying to add observable marking, using stix_cyber_observable.add_marking_definition() function, with the following arguments:
mark_obj = MarkingDefinition(client)
marking_id = mark_obj.create(definition='TLP:GREEN', definition_type='TLP').get('id')
result = client.stix_cyber_observable.add_marking_definition(id=id, marking_definition_id=marking_id)
add_marking_definition function return an error because its trying to access non-existing key: "markingDefinitionsIds"
at this line: here
Tried to debug this code, and when the code reaches this line:

there is no key "markingDefinitionsIds" at stix_cyber_observable object, but there is "objectMarkingIds" key, maybe it is the requested key?
Environment
- OS Mac OS 10
- OpenCTI version: OpenCTI 4.0.7
- Other environment details: python 3.8
Reproducible Steps
Steps to create the smallest reproducible scenario:
- Try to use client.stix_cyber_observable.add_marking_definition function.
Expected Output
Adding new marking definition successfully.
Actual Output
Error, because code is trying to access non-existing key: "markingDefinitionsIds".