---
title: "Update Folder"
method: PUT
path: "/folders/{folder_id}"
tags: ["folders"]
---

# Update Folder

`PUT /folders/{folder_id}`

Update folder name (rename).

Only folder owners can rename folders.

## Path parameters

- `folder_id` string, required

## Request body

- FolderUpdate
  - `name` string, required

## Response `200`

Successful Response

- FolderResponse
  - `id` string, required
  - `name` string, required
  - `user_id` string, required
  - `parent_folder_id` string, nullable
  - `folder_type` 'teacher_exam' | 'teacher_exercise' | 'teacher_assignment' | 'teacher_course' | 'student_course' | 'student_assignment', required
  - `sharing_options` SharingOptions — Model for sharing configuration across folders, exams, and exercises
    - `shared_with_school` boolean
    - `shared_with` string[]
    - `read_only` boolean
  - `is_favorites_root` boolean
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/c407f3b5a05b/schema)
