---
title: "Rename File"
method: PATCH
path: "/v2/teams/{teamId}/files"
tags: ["Files"]
---

# Rename File

`PATCH /v2/teams/{teamId}/files`

Rename a file in team storage.

## Path parameters

- `teamId` string, required

## Request body

- object
  - `relativePath` string, required — Current path of the file relative to the team's storage root
  - `newFilenameOnly` string, required — New file name (no extension; the existing extension is preserved)

## Response `200`

Default Response

- object
  - `success` boolean, required — True if the operation succeeded

## Other responses

- `400` — Default Response
- `401` — Default Response
- `404` — Default Response
- `500` — Default Response

---

[API](https://skmtc.net/duvo/apis/duvo-public-api.md) · [All operations](https://skmtc.net/duvo/apis/duvo-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/duvo/duvo-public-api/revisions/dafcf3d868a9/schema)
