Skip to main content

Rename a Resource

Summary

Renames a file or folder at the specified path.

Endpoint

POST https://mysite.files.com/v1.2/renameResource

Replace mysite.files.com with your site address.

Request Parameters

NameData TypeDescription
access_tokenstringRequired. The session key that identifies which user is authenticated. Either an access token returned by the authenticateUser function, or a Files.com user API Key.
filePathstringRequired. Current path of the file or folder to rename.
newNamestringRequired. The new name of the file or folder.