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

# Move Category

`POST /calcul-exercises/move-category`

Move all templates from one category to another.
Updates category_path for all templates that start with source_path.
Admin only.

Example:
- source_path: ["4e", "A TRIER"]
- destination_path: ["4e", "Calcul"]

All templates with category_path starting with ["4e", "A TRIER", ...]
will be moved to ["4e", "Calcul", ...]

## Request body

- RoutersCalculExercisesMoveCategoryInput — Input model for moving a category
  - `source_path` string[], required — Source category path to move
  - `destination_path` string[], required — Destination category path

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