---
title: "Edit TextFile"
method: POST
path: "/api/manageGame/editTextFile"
tags: ["Manage Game"]
---

# Edit TextFile

`POST /api/manageGame/editTextFile`

## Request body

- EditTextFileDto
  - `path` string, required — The path of textfile
  - `textFile` string, required — Text data content

## Response `200`

File edited successfully.

## Other responses

- `400` — Failed to edit the file.

---

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