---
title: "Create a comment"
method: POST
path: "/task-comments"
tags: ["Task Comments"]
---

# Create a comment

`POST /task-comments`

Add a new comment to a task

## Request body

- TaskCommentCreateRequest
  - `task_id` string, uuid, required — Task UUID to comment on
  - `content` string, required — Comment content (HTML allowed)

## Response `200`

Comment created successfully

- object
  - `done` boolean, required — Indicates if the operation was successful
  - `body` object, nullable, required — Response data (type varies by endpoint, null if no data)
    - `id` string, uuid
    - `task_id` string, uuid
    - `content` string — Comment content (supports HTML)
    - `user_id` string, uuid
    - `user_name` string — Name of the user who created the comment
    - `created_at` string, date-time
    - `updated_at` string, date-time, nullable
  - `title` string, nullable — Optional response title
  - `message` string, nullable — Optional message (error message or success notification)

---

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