---
title: "Write a file"
method: POST
path: "/sandboxes/{sandboxID}/files"
tags: ["sandboxes"]
---

# Write a file

`POST /sandboxes/{sandboxID}/files`

Write content to a file inside a sandbox

## Path parameters

- `sandboxID` string, required

## Request body

- GithubComStacyOsStacyvmInternalOrchestratorFileWriteRequest
  - `content` string
  - `mode` string
  - `path` string

## Response `200`

OK

- InternalApiRoutesStatusResponse
  - `status` string

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/stacyos/apis/stacyvm-api.md) · [All operations](https://skmtc.dev/stacyos/apis/stacyvm-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stacyos/stacyvm-api/revisions/d8b1ebf10293/schema)
