---
title: "Add a Comment to a Task"
method: POST
path: "/v1/tasks/comment"
tags: ["Tasks"]
---

# Add a Comment to a Task

`POST /v1/tasks/comment`

## Request

- Base URL: `https://api.exhibitday.com`
- URL: `https://api.exhibitday.com/v1/tasks/comment`
- Auth: one of:
  - API key in header `api_key`
  - API key in query parameter `api_key`

The response will contain an object representing the newly added task comment.

Documentation: https://api.exhibitday.com/Help/V1?epf=2#post-v1-tasks-comment

## Headers

- `Idempotency-Key` string

## Request body

- PostTasksCommentRequest
  - `task_id` integer, required: The id of the task you would like to add the comment to.
  - `comment` string, required: The text of the comment you would like to add. Only accepts plain text. Any HTML tags will be stripped. Newline characters are displayed as line breaks in ExhibitDay and remain newline characters in API responses. Accepts up to 15,000 characters (some symbols count as two characters).

## Response `200`

OK

- TaskCommentReferenced, nullable
  - `id` integer
  - `comment` string, nullable
  - `comment_created_timestamp` string, date-time
  - `comment_last_update_timestamp` string, date-time
  - `commenter` AspNetUserReferenced, nullable
    - `id` string, nullable
    - `first_name` string, nullable
    - `last_name` string, nullable
    - `email` string, nullable

## Other responses

- `400`: Bad Request: a missing or invalid parameter, or a change that is not allowed (error_code says which).
- `401`: Unauthorized: the api_key is missing or invalid, or API access is not enabled for the workspace.
- `404`: Not Found: no object with that id in your workspace, or an unknown URL or method.
- `409`: Conflict: idempotency_key_in_use (a request with the same Idempotency-Key is still being processed; retry after a moment with the same key) or idempotency_key_indeterminate (an earlier request with that key did not finish; check whether it succeeded, then retry with a new key).
- `429`: Too Many Requests: the rate limit was exceeded.
- `500`: Unexpected Internal Error.

---

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