---
title: "Upload a file into a sandbox"
method: PUT
path: "/sandboxes/{sandbox_id}/files/{path}"
tags: ["Files"]
---

# Upload a file into a sandbox

`PUT /sandboxes/{sandbox_id}/files/{path}`

Idle sandboxes are automatically resumed before the upload.

## Response `200`

File uploaded

- object
  - `path` string
  - `size` integer

## Other responses

- `401` — Missing or invalid API key
- `404` — Resource not found
- `409` — Sandbox is not in a valid state for this operation
- `500` — Internal server error

---

[API](https://skmtc.net/superserve-ai/apis/superserve-api.md) · [All operations](https://skmtc.net/superserve-ai/apis/superserve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/superserve-ai/superserve-api/versions/304fe18155b8/schema)
