---
title: "保存文件内容"
method: PUT
path: "/api/v1/users/files/save"
tags: ["【用户】文件管理"]
---

# 保存文件内容

`PUT /api/v1/users/files/save`

保存文件内容

## Request body

- DomainFileSaveReq
  - `content` string — 文件内容
  - `id` string, required — 虚拟机 id
  - `path` string, required — 文件路径

## Response `200`

成功

- WebResp
  - `code` integer
  - `data` unknown
  - `message` string

---

[API](https://skmtc.net/chaitin/apis/untitled-api.md) · [All operations](https://skmtc.net/chaitin/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chaitin/untitled-api/revisions/5a5929cb17f2/schema)
