Skip to main content
POST
Uploads a file to the sandbox using multipart form data. 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 (multipart/form-data)

file
required
The file to upload.
string
required
Destination path in the sandbox (e.g. /src/data.json).

Response

string
Path where the file was written.
integer
Size of the uploaded file in bytes.