patch https://www.virustotal.com/api/v3/monitor_partner/comments/
Create a comment and if necessary confirm detection over a hash
This endpoint allows you to update a comment and change detection if necessary. More information about detection attribute could be found in /hashes/{sha256}/comments.
import requests
comment_id = '<comment-id>'
url = "https://www.virustotal.com/api/v3/monitor_partner/comments/{comment_id}" % comment_id
data = {'data': [{'attributes': {
'comment': '[TEXT]',
'detection': 'confirmed',
'engine': '[ENGINE]',
'sha256': '[HASH-SHA256]},
'id': comment_id,
'type': 'monitor_hash_comment'}]}
response = requests.request("POST", url, data=json.dumps(data))
print(response.text)
{'data': [
{'attributes': {
'comment': '[TEXT]',
'detection': 'confirmed',
'engine': '[ENGINE-ID]',
'sha256': '[HASH-SHA256]'
},
'id': '[MONITOR-COMMENT-ID]',
'type': 'monitor_hash_comment'
}]}