---
title: "Edit File Name"
method: POST
path: "/api/manageGame/editFileName"
tags: ["Manage Game"]
---

# Edit File Name

`POST /api/manageGame/editFileName`

## Request body

- EditFileNameDto
  - `path` string, required — The path to the file to be renamed
  - `newName` string, required — The new name for the file

## Response `200`

Successfully renamed the file.

## Other responses

- `400` — Failed to rename 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)
