> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yolocode.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Write File

> Write content to a file in a sandbox

Writes content to a file in a sandbox.

**Authorization** `string` *required*

Bearer token. `Bearer <github_token>`

**sandboxId** `string` *required*

Sandbox ID.

**path** `string` *required*

File path to write.

**content** `string` *required*

File content.

> [!NOTE]
>
> For Daytona sandboxes, use `/api/daytona/{sandboxId}/files/write`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.