Skip to main content
POST
Creates or overwrites a file at the specified path in 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
Path where the file should be written (e.g. /src/index.ts).
string
required
File contents to write.

Response

string
Path of the written file.
integer
Size of the written file in bytes.