title: Change filename of existing file on SharePoint Document library using REST API
body: <p>I have a question on how to change an existing file on SharePoint document library using REST API. I have a couple of files in the location <code>http://site url/&lt;RootFolder&gt;/&lt;SubFolder&gt;/File.docx</code>. I have a UI where it lists all the files from this subfloder location. When the user clicks on edit i am enabling the file name as textbox where the user can change the name of the file. </p>
  
  <p>After doing some research i found that Constructing an endpoint that looks like this: <code>https://&lt;site url&gt;/_api/web/lists/getbytitle('Documents')/items(&lt;item id&gt;)</code> we can edit the file metadata properties. But i could not able to figure out the best way to update the filename of existing document that resides on SharePoint Doc library.</p>
  
  <p>Could someone please help me with the REST API query to fetch the file and the approach to update the filename?</p>