File System
Rename box/dir
Renames a file or a directory. If the target newPath already exists, the rename will fail.
post/boxes/{boxId}/fs/rename
Path parameters
boxIdstring required
Example:c9bdc193-b54b-4ddb-a035-5ac0c598d32d
Box ID
Request body
Example request
{
"workingDir": "/home/user/documents",
"oldPath": "/home/user/documents/output.txt",
"newPath": "/home/user/documents/new-name.txt"
}Response
Rename file
Example response
{
"name": "example.txt",
"path": "/path/to/example.txt",
"size": "10MB",
"mode": "755",
"lastModified": "2021-01-01T00:00:00Z"
}