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

## Changes

- **2024-03-25** `10d0f275691f` — 1 breaking, 1 warning
  - added the new required request property `gameName`
  - removed the request property `source`
- **2023-10-20** `bbfe1dbc457f` — 1 breaking, 1 warning
  - added the new required request property `source`
  - removed the request property `gameName`

[Change history](https://skmtc.dev/openwebgal/apis/webgal-terre-api/changes/api/manageGame/rename/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/ebcacb42f932/schema)
