Write Files (Batch)
Filesystem API
Write Files (Batch)
Write multiple files to a sandbox in a single request.
POST
Write Files (Batch)
Writes multiple files to the sandbox filesystem in a single API call. All files
are written atomically through envd. Parent directories are created automatically
for each entry.
Use batch writes to upload a project’s source files, configuration, or datasets
without making one API call per file.
Path Parameters
The sandbox identifier. Format:
sbx-<8 chars>.Request Body
Array of file entries to write. Each entry has a
path and data field.Response
Returns the envd batch write confirmation as a JSON object.Example
Error Responses
| Status | Cause |
|---|---|
400 | Invalid request body |
401 | Missing or invalid API key |
404 | Sandbox not found |
502 | envd daemon unreachable |
503 | Sandbox has no VM |