Skip to main content
POST
Write a file to a sandbox

Authorizations

X-Access-Token
string
header
required

Per-sandbox token returned by create, resume, and activate. Grants access to a single sandbox's files and commands. Distinct from the team X-API-Key.

Query Parameters

path
string
required

Absolute path inside the sandbox (e.g. /home/user/out.txt).

Body

application/octet-stream

The body is of type file.

Response

File written.

Result of a successful file write.

path
string

Absolute path the file was written to inside the sandbox.

size
integer<int64>

Number of bytes written.