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

# Move Category

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

Move every exercise whose category_path starts with `source_path`
so that the source folder becomes a child of `destination_path`.

Mirrors the behaviour of `/calcul-exercises/move-category`: the moved
folder keeps its name (`source_path[-1]`) and any descendants below it
are preserved. Passing an empty `destination_path` lifts the folder to
the root.

## Request body

- RoutersAdminPublicExercisesMoveCategoryInput
  - `source_path` string[], required
  - `destination_path` string[]

## 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-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/ef67479ed898/schema)
