Update a single case
Use case.update(case_id, fields) to modify an existing case. The fields argument is a dictionary of the attributes you wish to change (e.g., title, tags).
Note: thehive4py is a lightweight wrapper and does not perform Object-Relational Mapping (ORM). An existing local object will not automatically reflect updates made via the API; you must call case.get(case_id) to retrieve the updated version.
Update multiple cases (Bulk)
To update the same fields with the same values across multiple cases, use case.bulk_update. The fields dictionary must include an additional ids key containing a list of the case IDs to be updated.
# Bulk update example
# fields = {'title': 'New Title', 'tags': ['new_tag'], 'ids': ['id1', 'id2']}
# case.bulk_update(fields)