---
title: "Creates a comment on a task."
method: POST
path: "/api/task/comment"
tags: ["Task"]
---

# Creates a comment on a task.

`POST /api/task/comment`

## Request

- Base URL: `https://app.checkflow.io` (the document declares no server; this is the origin it was published from)
- URL: `https://app.checkflow.io/api/task/comment`
- Auth: none declared

If you do not know the task id use - GET: /api/task/comment

Sample request:

    POST: /api/task/comment
    {
        "taskID": 285212,
        "commentHtml": "<p>Here is my comment.</p>",
        "createdByUserID": 123
    }

## Headers

- `X-API-VERSION` string
- `X-API-KEY` unknown

## Request body

- CreateCommentModel
  - `taskID` integer, required
  - `commentHtml` string, required
  - `createdByUserID` integer

## Response `200`

If the task comment was created successfully

## Other responses

- `400`: If the task content could not be updated
- `401`: If the API Key could not be validated
- `404`: If the taskID could not be found

---

[API](https://skmtc.dev/checkflow/apis/checkflow-api.md) · [All operations](https://skmtc.dev/checkflow/apis/checkflow-api/llms.txt) · [OpenAPI document](https://skmtc.dev/checkflow/apis/checkflow-api/revisions/4004b1f66432?raw)
