---
title: "POST /add-topic"
method: POST
path: "/add-topic"
tags: ["Topic API"]
---

# POST /add-topic

`POST /add-topic`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/add-topic`
- Auth: none declared

add one topic

## Request body

- ControllersNewTopicForm
  - `body` string
  - `editorType` string
  - `nodeId` string
  - `tags` string[]
  - `title` string

## Response `200`

The Response object

- ControllersResponse
  - `data` 877150xc0004fa000False
  - `data2` 877490xc0004fa030False
  - `msg` string
  - `status` string

## Changes

- **2026-07-17** `c21c4387b897`: 2 info
  - api tag `Topic API` added
  - api tag `github.com/casbin/casnode/controllersApiController` removed
- **2021-06-17** `023a7e383f67`: 2 info
  - api tag `github.com/casbin/casnode/controllersApiController` added
  - api tag `Topic API` removed

[Operation history](https://skmtc.dev/casdoor/apis/casdoor-casnode-api/changes/add-topic/post.md)

---

[API](https://skmtc.dev/casdoor/apis/casdoor-casnode-api.md) - [All operations](https://skmtc.dev/casdoor/apis/casdoor-casnode-api/llms.txt) - [OpenAPI document](https://skmtc.dev/casdoor/apis/casdoor-casnode-api/revisions/96a96feb975e?raw)
