Skip to main content
POST
Renames or moves a file from one path to another within the sandbox. Required scope: sessions:write

Path Parameters

string
required
The session ID (e.g. ses_abc123).

Headers

string
required
Bearer token. Example: Bearer runtm_xxx

Body

string
required
Current file path (e.g. /src/utils.ts).
string
required
New file path (e.g. /src/helpers.ts).

Response

string
Previous file path.
string
New file path.