Skip to main content
PUT
Write File (Raw / Binary)
Streams the request body directly into a file on the sandbox disk without buffering in memory. Use this endpoint for any binary payload — images, archives, compiled artifacts, base64-decoded blobs — or for uploads larger than the 10 MiB JSON gateway cap. For UTF-8 text, the JSON POST /files endpoint is usually the simpler choice.

Path Parameters

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

Query Parameters

string
required
Absolute path to write inside the sandbox. Parent directories are created automatically.Example: /home/user/image.png
string
Unix user to own the written file. Defaults to the envd default user.

Request Headers

string
required
Must be application/octet-stream.

Request Body

Raw bytes. Up to 500 MiB per request. The body is streamed to disk with a flat memory footprint on the orchestrator.

Response

Example

When to use this vs. other endpoints

Error Responses