---
title: "Rename File or Directory"
method: POST
path: "/api/manageGame/rename"
tags: ["Manage Game"]
---

# Rename File or Directory

`POST /api/manageGame/rename`

## Request body

- RenameDto
  - `gameName` string, required — Old name for renaming the game
  - `newName` string, required — New name for renaming the game

## Response `200`

Successfully renamed the file or directory.

## Other responses

- `400` — Failed to rename the file or directory.

---

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