---
title: "Edit Text File"
method: POST
path: "/api/assets/editTextFile"
tags: ["Assets"]
---

# Edit Text File

`POST /api/assets/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 text.

---

[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)
