---
title: "Create Comment"
method: POST
path: "/api/tasks/{task_id}/comments"
tags: ["tasks", "tasks"]
---

# Create Comment

`POST /api/tasks/{task_id}/comments`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/tasks/{task_id}/comments`
- Auth: none declared

## Path parameters

- `task_id` integer, required

## Request body

- CreateCommentRequest
  - `body` string, required
  - `attachment_file_ids` integer[], nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
