---
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.

## Changes

- **2024-03-25** `10d0f275691f` — 1 info
  - api operation id `AssetsController_editScene` removed and replaced with `AssetsController_editTextFile`
- **2024-03-24** `953aa5d22ca0` — 1 info
  - endpoint added
- **2023-10-20** `bbfe1dbc457f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/openwebgal/apis/webgal-terre-api/changes/api/assets/editTextFile/post.md)

---

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