What is the best way to rename a file in SharePoint online without losing its version history? Is it enough to update the "FileLeafRef" or Should I do a file.move?
Is there a Graph way for it?
What is the best way to rename a file in SharePoint online without losing its version history? Is it enough to update the "FileLeafRef" or Should I do a file.move?
Is there a Graph way for it?
We could use this to update file :
PATCH https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items/{item-id}/fields
https://learn.microsoft.com/en-us/graph/api/listitem-update?view=graph-rest-1.0&tabs=http