---
title: "Rename folder"
method: PATCH
path: "/api/v2/files/rename"
tags: ["v2 files"]
---

# Rename folder

`PATCH /api/v2/files/rename`

Renames a folder

## Request body

- RenameFolderRequest
  - `folderUUID` string
  - `renameTo` string
  - `details` string

## Response `200`

Folder renamed

- IndexedFile
  - `uuid` string
  - `parentUUID` string
  - `aipId` string
  - `representationId` string
  - `representationUUID` string
  - `path` string[]
  - `ancestorsPath` string[]
  - `id` string
  - `referenceUUID` string
  - `referenceURL` string
  - `referenceManifest` string
  - `fileFormat` FileFormat
    - `formatDesignationName` string
    - `formatDesignationVersion` string
    - `formatDesignation` string
    - `mimeType` string
    - `pronom` string
    - `extension` string
    - `formatRegistries` object
  - `originalName` string
  - `size` integer
  - `creatingApplicationName` string
  - `creatingApplicationVersion` string
  - `dateCreatedByApplication` string
  - `hash` string[]
  - `storagePath` string
  - `ancestors` string[]
  - `otherProperties` object
  - `fields` object
  - `instanceId` string
  - `instanceName` string
  - `createdOn` string, date-time
  - `localInstance` boolean
  - `reference` boolean
  - `available` boolean
  - `directory` boolean

## Other responses

- `409` — Already exists

---

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