---
title: "Update Topic In Hierarchy"
method: PUT
path: "/admin/course-hierarchies/update-topic"
tags: ["admin"]
---

# Update Topic In Hierarchy

`PUT /admin/course-hierarchies/update-topic`

Update a topic's title and number in both the hierarchy and topics collection.

## Request body

- UpdateTopicRequest — Request model for updating a topic.
  - `topic_id` string, required
  - `course_id` string, required
  - `unit_index` integer, required
  - `module_index` integer, required
  - `topic_index` integer, required
  - `new_topic_number` string, required
  - `new_topic_title` string, required

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