---
title: "Write File"
method: PUT
path: "/v1/sandboxes/{sandbox_id}/fs/content"
tags: ["Sandboxes"]
---

# Write File

`PUT /v1/sandboxes/{sandbox_id}/fs/content`

Write the raw request body (application/octet-stream, max 100 MiB) to an absolute path inside the sandbox.

## Path parameters

- `sandbox_id` string, required

## Query parameters

- `path` string, required

## Headers

- `xi-api-key` string, nullable
- `x-api-key` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `409` — Conflict
- `413` — Request Entity Too Large
- `422` — Validation Error

---

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