Change a file relation from one collection type to another

Is it somehow possible to change the relation for an uploaded file from one collection type (Ref and RefId) to another one? Tried with setSettings and Update service calls but these methods appear not to be meant for handling such updates.
Thanks!