---
title: "Add Topic Comment"
method: POST
path: "/api/users/:userId/topics/:topicId/comments"
tags: ["comments"]
---

# Add Topic Comment

`POST /api/users/:userId/topics/:topicId/comments`

Add an Comment to the topic

## Path parameters

- `userId` string, required
- `topicId` string, required

## Request body

- object
  - `type` 'pro' | 'con' | 'reply'
  - `parentId` string — parent comment id if comment is a reply
  - `parentVersion` integer — if comment is reply then parent version can show exact version that was replied in case parent comment is edited
  - `subject` string — comments subject
  - `text` string — comments content

## Response `200`

New Comment added successfully

- object
  - `status` object
    - `code` integer
  - `data` Comment
    - `type` string
    - `subject` string
    - `text` integer
    - `parent` object
      - `id` string, uuid
      - `version` integer
    - `creator` object
      - `id` string
      - `name` string
      - `company` string
    - `edits` object[]
      - `createdAt` string
      - `subject` string
      - `text` string
      - `type` 'pro' | 'con' | 'reply'
    - `createdAt` string
    - `updatedAt` string
    - `deletedAt` string
    - `deletedBy` object
      - `id` string
    - `deletedReasonText` string
    - `deletedReasonType` 'abuse' | 'obscene' | 'spam' | 'hate' | 'netiquette' | 'duplicate'
    - `report` object
      - `id` string, uuid

---

[API](https://skmtc.dev/citizenos/apis/citizenos-api.md) · [All operations](https://skmtc.dev/citizenos/apis/citizenos-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/citizenos/citizenos-api/revisions/ca28908e6b75/schema)
