---
title: "Patch a folder"
method: PATCH
path: "/matters/{matterId}/documents/folders/{folderId}"
tags: ["Folders"]
---

# Patch a folder

`PATCH /matters/{matterId}/documents/folders/{folderId}`

Updates a folder belonging to the specified matter.

## Path parameters

- `matterId` string, required
- `folderId` string, required

## Request body

- FolderDto
  - `name` string, required — Name of the folder
  - `parentFolderId` string, nullable — Unique identifier of the parent folder
  - `userId` string, nullable — Unique identifier of the user modifying the folder. If null it will fallback to the authenticated user

## Response `202`

When request is accepted. Returns a hypermedia 'Link' object of the folder to be updated.

- Link
  - `id` string, nullable
  - `href` string, nullable
  - `relation` string, nullable
  - `method` string, nullable

## Other responses

- `400` — When folder name is not provided or folder does not belong to the specified matter.
- `404` — When folder with the specified id does not exist.

---

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