---
title: "Write File"
method: PUT
path: "/api/workspace/file"
tags: ["workspace-editor"]
---

# Write File

`PUT /api/workspace/file`

## Request

- Base URL: `https://api.deeptrace.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.deeptrace.com/api/workspace/file`
- Auth: none declared

REST fallback: Write file.

## Query parameters

- `path` string, required

## Request body

- FileContent
  - `content` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/deeptrace/apis/deeptrace-api.md) - [All operations](https://skmtc.dev/deeptrace/apis/deeptrace-api/llms.txt) - [OpenAPI document](https://skmtc.dev/deeptrace/apis/deeptrace-api/revisions/855e59bb07f0?raw)
