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

# Create Task Comment

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

Add a comment to a task and notify mentioned users.

## Path parameters

- `task_id` string, uuid, required

## Request body

- CreateTaskCommentRequest
  - `body` string, required
  - `parent_id` string, uuid, nullable

## Response `200`

Successful Response

- TaskCommentItem
  - `id` string, uuid, required
  - `task_id` string, uuid, required
  - `parent_id` string, uuid, nullable
  - `user_id` string, uuid, required
  - `message` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, nullable
  - `user_name` string, nullable
  - `avatar_url` string, nullable

## Other responses

- `400` — Invalid or malformed request
- `401` — Missing or invalid credentials
- `403` — Caller may not access this resource
- `404` — Referenced entity does not exist
- `409` — Resource already exists
- `422` — Validation Error

---

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