---
title: "Changes to Rename a file or directory without re-uploading content"
method: PATCH
path: "/api/contents/{path}"
---

# Changes to Rename a file or directory without re-uploading content

`PATCH /api/contents/{path}`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 2 of 4 revisions.

- **2025-12-18** `b6f1ce06c896`: 2 breaking, 2 info
- **2025-12-10** `e9ae9d653401`: 3 breaking, 1 warning

## Changes

- **2025-12-18** `b6f1ce06c896`: 2 breaking, 2 info
  - added the new path request parameter `path`
  - added required request body
  - added the media type `application/json` for the response with the status `200`
  - added the media type `application/json` for the response with the status `400`
- **2025-12-10** `e9ae9d653401`: 3 breaking, 1 warning
  - removed the request body
  - removed the media type `application/json` for the response with the status `200`
  - removed the media type `application/json` for the response with the status `400`
  - deleted the `path` request parameter `path`

---

[Operation](https://skmtc.dev/google/apis/jupyter-server-api/docs/api/contents/:path/patch.md) - [API](https://skmtc.dev/google/apis/jupyter-server-api.md) - [Page](https://skmtc.dev/google/apis/jupyter-server-api/changes/api/contents/:path/patch)
