Skip to main content
PATCH
Rename / Move File
Renames or moves a file or directory from old_path to new_path inside the sandbox. Works for both files and directories. If new_path is in a different directory, this is equivalent to a move.

Path Parameters

string
required
The sandbox identifier. Format: sbx-<8 chars>.

Request Body

string
required
Current absolute path of the file or directory.Example: "/home/user/draft.py"
string
required
New absolute path (destination). Parent directories must already exist.Example: "/home/user/final.py"
string
Unix user performing the rename. Defaults to the envd default user.

Response

Returns the envd rename confirmation as a JSON object.

Example

Error Responses