Skip to content

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
idstringrequired

Sandbox ID, e.g. sbx_ab12cd34.

query parameters
object
pathstringrequired

Guest destination directory the tar is extracted beneath.

Responses
200 OKOK
WireFilesPutResult
bytesintegerint64
filesinteger
400 Bad requestBad Request
ErrorResponse
errorstring
404 Not foundNot Found
ErrorResponse
errorstring
Authentication
bearerAuthHTTP bearer. Daemon API key. Omit on a keyless loopback daemon.
Request
POST/sandboxes/{id}/files
cURL
curl '/sandboxes/{id}/files?path=' \
  -X POST
Response
200 OK
{
  "bytes": 0,
  "files": 0
}
Was this page helpful?