---
title: "PUT /api/cephfs/{fs_id}/rename-path"
method: PUT
path: "/api/cephfs/{fs_id}/rename-path"
tags: ["Cephfs"]
---

# PUT /api/cephfs/{fs_id}/rename-path

`PUT /api/cephfs/{fs_id}/rename-path`

Rename a file or directory.
        :param fs_id: The filesystem identifier.
        :param src_path: The path to the existing file or directory.
        :param dst_path: The new name of the file or directory.

## Path parameters

- `fs_id` string, required

## Request body

- object
  - `dst_path` string, required
  - `src_path` string, required

## Response `200`

Resource updated.

- object

## Other responses

- `202` — Operation is still executing. Please check the task queue.
- `400` — Operation exception. Please check the response body for details.
- `401` — Unauthenticated access. Please login first.
- `403` — Unauthorized access. Please check your permissions.
- `500` — Unexpected error. Please check the response body for the stack trace.

---

[API](https://skmtc.net/ceph/apis/ceph-rest-api.md) · [All operations](https://skmtc.net/ceph/apis/ceph-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ceph/ceph-rest-api/versions/b03ae23c3806/schema)
