Add existing file to different object

I have a lot of files that are already in M-Files and attached to documents, and I want to attach them to a different object type as well. Is it possible to do this with the REST API?