Files
Write a file
Writes a file into the sandbox. Relative paths resolve inside /workspace. Content is transferred verbatim — it is never interpreted by a shell — so any bytes are safe. Use encoding: "base64" for binary. Maximum 8 MiB.
put/sandboxes/{id}/files
Request
- Base URL: https://sandbox-as-a-service.com/v1
- URL: https://sandbox-as-a-service.com/v1/sandboxes/{id}/files
- Auth: HTTP bearer
Request body
Example request
{
"path": "analysis.py",
"content": "print(\"hello\")\n"
}Response
File written.
Changes
No recorded changes to this operation across all 1 revision of this API.