I have an object with some files.
Now I need to remove all files and add new file in that object.
I can remove files using below Service
"http://localhost/REST/objects/{checkedOutObjectVersion.ObjVer.Type}/{checkedOutObjectVersion.ObjVer.ID}/{checkedOutObjectVersion.ObjVer.Version}/files/{checkedOutObjectVersion.Files[0].ID}.aspx?_method=DELETE"
Now I would like to add new file in that Object.
Upload new file in temp location.
{{url}}/REST/files
Now trying to update in document using below service
{{url}}REST/objects/{checkedOutObjectVersion.ObjVer.Type}/{checkedOutObjectVersion.ObjVer.ID}/{checkedOutObjectVersion.ObjVer.Version}
/files
But getting below response
What is the wrong I am doing