---
title: "Write a file (≤5 MB inline; bigger: POST /sandboxes/{id}/files/upload-url)"
method: PUT
path: "/sandboxes/{id}/files"
tags: ["sandboxes"]
---

# Write a file (≤5 MB inline; bigger: POST /sandboxes/{id}/files/upload-url)

`PUT /sandboxes/{id}/files`

## Request

- Base URL: `https://api.eqvps.com/api/v1/eqvps`
- URL: `https://api.eqvps.com/api/v1/eqvps/sandboxes/{id}/files`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- FileUpload
  - `path` string, required
  - `content_base64` string, required
  - `mode` string

## Response `200`

Written

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

## Other responses

- `404`: not_found
- `409`: sandbox_paused / sandbox_not_running / conflict
- `413`: file_too_large

---

[API](https://skmtc.dev/eqvps/apis/eqvps-api.md) · [All operations](https://skmtc.dev/eqvps/apis/eqvps-api/llms.txt) · [OpenAPI document](https://skmtc.dev/eqvps/apis/eqvps-api/revisions/2cbc15a2b088?raw)
