Open fcosantos opened 1 year ago
I tool at look at this, and there's no way to do fix it in a way that makes sense for the API user. Instead you could simply do this:
with vt.Client(...) as client:
id = '11111111'
ruleset = vt.Object('hunting_ruleset', obj_id=id)
ruleset.rules = 'eso'
client.patch(...)
if the object has been created locally instead of retrieved:
https://github.com/VirusTotal/vt-py/blob/master/vt/client.py#L586C33-L586C57
example: rules attribute will not be uploaded.