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

# Rename Category

`POST /calcul-exercises/rename-category`

## Request

- Base URL: `https://api.excellence-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.excellence-ai.com/calcul-exercises/rename-category`
- Auth: OAuth 2 (password, token URL `api/login`)

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/379e4a57dee8?raw)
