How to update the filename using Files API?

I am trying to update the file name using Fream Factory Files API it’s not getting updated.

I am doing a Patch with new name and path with the url/api of Existing File. Please help.