---
title: "Rename Category"
method: POST
path: "/calcul-exercises/rename-category"
tags: ["Calcul Exercises"]
---

# Rename Category

`POST /calcul-exercises/rename-category`

Rename a category (folder).
Updates category_path for all templates that start with the given path.
Admin only.

Example:
- category_path: ["4e", "Calcul"]
- new_name: "Calcul Mental"

All templates with category_path starting with ["4e", "Calcul", ...]
will be renamed to ["4e", "Calcul Mental", ...]

## Request body

- RoutersCalculExercisesRenameCategoryInput — Input model for renaming a category
  - `category_path` string[], required — Category path to rename
  - `new_name` string, required — New name for the category

## Response `200`

Successful Response

- unknown

## 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.dev/excellence-ai/apis/excellence-learning/revisions/d367d251945b?raw)
