v5

latestOpenAPI 3.0.3raw.githubusercontent.com2026-07-01224150.1 KB
Runtime

Upload a file

Streams the raw request body to the destination path inside the sandbox.

Body is the file bytes, not JSON, not multipart, not form-data.

The parent directory must already exist; the server does not mkdir -p.

Size cap: 50 MB by default (SANDBOX_MAX_FILE_SIZE_BYTES). Include Content-Length so oversize uploads are rejected before the body is read.

put/sandboxes/{id}/files/{filePath}

Response

File written