---
title: "Rename Category"
method: POST
path: "/admin/public-exercises/rename-category"
tags: ["Admin Public Exercises"]
---

# Rename Category

`POST /admin/public-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/admin/public-exercises/rename-category`
- Auth: OAuth 2 (password, token URL `api/login`)

Rename the last segment of `category_path` for every exercise under
that prefix, AND mirror the rename into the `programmes` collection so
the curriculum tree stays aligned.

## Request body

- RoutersAdminPublicExercisesRenameCategoryInput
  - `category_path` string[], required
  - `new_name` string, required

## Response `200`

Successful Response

- object

## 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)
