Move a file to another Confluence cloud page via API

Hi all,

I am using Jira Confluence cloud. I want to move a file attached in a page to another page.

I explore solution using REST API to update file property so that it will move from a page to another page. In stead of download then upload.
hint: I already tried solution in: Move a file to another page but face issue “This file name already exists in the destination content” when I try on same name file. What I want is it should successfully move and create a revision.