---
title: "Update a comment on a task"
method: PATCH
path: "/tasks/{id}/comments/{comment_id}"
tags: ["tasks"]
---

# Update a comment on a task

`PATCH /tasks/{id}/comments/{comment_id}`

Updates an existing comment. Only the original author can update their comment.

**Rate limit:** 20 requests per minute

## Path parameters

- `id` string, required
- `comment_id` string, required

## Request body

- UpdateTaskCommentRequestBody
  - `body_html` string, required — The updated body of the comment in HTML format.

## Response `200`

- UpdateTaskCommentResponseBody
  - `data` TaskComment
    - `author` Actor
      - `contact` MiniContact
        - `email` string — The email of the contact.
        - `id` string — The ID of the contact.
      - `user` MiniUser
        - `email` string — The email of the user.
        - `id` string — The ID of the user.
    - `body_html` string — The body of the comment in HTML format.
    - `created_at` string — The created at time of the comment.
    - `id` string — The ID of the comment.
    - `is_internal` boolean — Whether the comment is visible only to internal users.
    - `last_edited_at` string — The time the comment was last edited, in RFC3339 format.
    - `task_id` string — The ID of the task this comment belongs to.
    - `updated_at` string — The updated at time of the comment.
  - `request_id` string — The request ID for tracking.

## Other responses

- `400` — The request was invalid or could not be completed.
- `404`
- `500` — An unexpected internal error occurred.

---

[API](https://skmtc.net/usepylon/apis/pylon-api.md) · [All operations](https://skmtc.net/usepylon/apis/pylon-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usepylon/pylon-api/versions/999c51740b4e/schema)
