Push files into a sandbox
POST/sandboxes/{id}/files
Extracts a tar stream (the request body, application/octet-stream) beneath ?path in the guest filesystem; the `crucible cp` push path. Rejects entries that escape the destination.
path parameters
object
idstringrequiredSandbox ID, e.g. sbx_ab12cd34.
query parameters
object
pathstringrequiredGuest destination directory the tar is extracted beneath.
Responses
200 OKOK
WireFilesPutResult
bytesintegerint64filesinteger400 Bad requestBad Request
ErrorResponse
errorstring404 Not foundNot Found
ErrorResponse
errorstringAuthentication
bearerAuthHTTP bearer. Daemon API key. Omit on a keyless loopback daemon.Request
▍POST/sandboxes/{id}/files
curl '/sandboxes/{id}/files?path=' \
-X POSTconst response = await fetch("/sandboxes/{id}/files?path=", {
method: "POST",
});
const data = await response.json();import requests
response = requests.post(
"/sandboxes/{id}/files?path=",
)
data = response.json()Response
200 OK
{
"bytes": 0,
"files": 0
}