---
title: "Rename a topic (display name only; slug never changes)"
method: PATCH
path: "/api/admin/topics/{id}"
tags: ["admin"]
---

# Rename a topic (display name only; slug never changes)

`PATCH /api/admin/topics/{id}`

## Request

- The document declares no server URL.
- Auth: none declared

## Path parameters

- `id` string, required

## Request body

- UpdateTopicRequest: Renames the display name only; the slug never changes.
  - `name` string, required

## Response `200`

Topic renamed

- TopicAdminResponse: Topic row for the admin panel: public fields plus how many articles currently carry the topic (delete is refused while non-zero).
  - `article_count` integer, required
  - `id` string, required
  - `name` string, required
  - `slug` string, required

## Other responses

- `400`: Invalid or duplicate name
- `403`: Insufficient permissions
- `404`: Topic not found

## Changes

- **2026-07-31** `d445f2d2c6c1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/scholia-study/apis/scholia-api/changes/api/admin/topics/:id/patch.md)

---

[API](https://skmtc.dev/scholia-study/apis/scholia-api.md) - [All operations](https://skmtc.dev/scholia-study/apis/scholia-api/llms.txt) - [OpenAPI document](https://skmtc.dev/scholia-study/apis/scholia-api/revisions/684b3751bfd3?raw)
