I need to attach a file to a list item in Sharepoint 2013.
If an attachment with the same name already exists, I need to overwrite its content with the new one.
I'm currently using request like this:
.../AttachmentFiles/add(FileName='MyFile.csv')
It works if no attachment with the same name exist in the item.
But it fails if attachment already exists.
Is there a way to instruct SP to overwrite the attachment when it's already exists?