---
title: "Create Comment"
method: POST
path: "/api/documents/{doc_id}/comments"
tags: ["comments"]
---

# Create Comment

`POST /api/documents/{doc_id}/comments`

## Request

- Base URL: `https://draw.noddle.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://draw.noddle.dev/api/documents/{doc_id}/comments`
- Auth: none declared

## Path parameters

- `doc_id` string, required

## Request body

- CommentIn
  - `body` string, required
  - `page_id` string, nullable
  - `parent_id` string, nullable
  - `anchor` object, nullable
  - `guest_name` string, nullable
  - `guest_color` string, nullable

## Response `200`

Successful Response

- CommentsOut
  - `comments` CommentOut[], required
    - `id` string, required
    - `body` string, required
    - `author_id` string, nullable, required
    - `author_name` string, required
    - `author_color` string, required
    - `page_id` string, nullable, required
    - `parent_id` string, nullable, required
    - `anchor` object, nullable, required
    - `resolved` boolean, required
    - `created_at` number, required
    - `updated_at` number, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/noddle/apis/noddle-board-2.md) · [All operations](https://skmtc.dev/noddle/apis/noddle-board-2/llms.txt) · [OpenAPI document](https://skmtc.dev/noddle/apis/noddle-board-2/revisions/619d69255d70?raw)
