Application - File Manager
Move File
Move a file in your application.
PATCH
Move File
string
required
The API key for your account. You can find this in your account settings.
path to to, without downloading and re-uploading its contents. Use it to reorganize a directory structure or rename a config file in place.
path and to must both pass path validation and must be different, sending the same value for both is rejected with INVALID_PATH. This only moves the file on the running application’s storage; it does not restart the process, so a running process reading the old path will not see the change until it reloads or the app is restarted. To delete a file instead of moving it, see Delete File.
On workspace-shared applications the caller needs the Maintainer or Administrator role. The restricted-files check applies to both the source and destination names, so a member without that permission cannot rename an allowed file into a protected name like .env to plant or overwrite it.
Parameters
string
required
The ID of the application. You can find this in the URL of your application’s dashboard.
string
required
The path of the file to move.
string
required
The path to move the file to.
Response
string
Indicates whether the call was successful..
success if successful, error if not.Common errors
Move File

