patch https://www.virustotal.com/api/v3/collections/
This endpoint allows updating a collection's attributes (such as name or description) and adding new elements to a collection by using a raw text.
The following request body shows an example of how to update a collection's name and add new IOCs to it by using a raw text:
{
"data": {
"attributes": {
"name": "Updating the name"
},
"raw_items": "This is a text containing a IoC, www.virustotal.com",
"type": "collection"
}
}