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

# Rename Category

`POST /admin/public-exercises/rename-category`

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/2a0c1636fd3b?raw)
