---
title: "Create Comment"
method: POST
path: "/comments/paper/{paper_id}"
tags: ["comments"]
---

# Create Comment

`POST /comments/paper/{paper_id}`

## Request

- Base URL: `https://api.codeofpaper.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.codeofpaper.com/comments/paper/{paper_id}`
- Auth: HTTP bearer

Create a new comment on a paper.

Requires authentication.

## Path parameters

- `paper_id` string, required

## Request body

- CommentCreate: Request body for creating a comment.
  - `content` string, required
  - `parent_id` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/codeofpaper/apis/code-of-paper-dev-api.md) · [All operations](https://skmtc.dev/codeofpaper/apis/code-of-paper-dev-api/llms.txt) · [OpenAPI document](https://skmtc.dev/codeofpaper/apis/code-of-paper-dev-api/revisions/94ea47fd4aa1?raw)
