---
title: "Update a comment (deprecated: use /brands/:brandId)"
method: PATCH
path: "/v1/workspaces/{workspaceId}/tickets/{ticketId}/comments/{commentId}"
tags: ["comments"]
---

# Update a comment (deprecated: use /brands/:brandId)

`PATCH /v1/workspaces/{workspaceId}/tickets/{ticketId}/comments/{commentId}`

## Request

- Base URL: `https://api.dispatchtickets.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dispatchtickets.com/v1/workspaces/{workspaceId}/tickets/{ticketId}/comments/{commentId}`
- Auth: HTTP bearer

## Path parameters

- `workspaceId` string, required
- `ticketId` string, required
- `commentId` string, required

## Request body

- UpdateCommentDto
  - `body` string
  - `authorName` string
  - `links` LinkDto[]
    - `url` string, required
    - `title` string
    - `type` string
  - `metadata` object: Additional metadata (max 64KB)
  - `source` 'api' | 'web' | 'email' | 'slack' | 'sms' | 'discord' | 'instagram' | 'twitter' | 'whatsapp' | 'recurring' | 'chat' | 'custom': Source channel where the comment originated
  - `sourceId` string: Original ID from the source
  - `sourceData` object: Additional source-specific data (max 64KB)
  - `setStatus` 'open' | 'pending' | 'resolved': Optionally set the ticket status when adding this comment
  - `connectionId` string: Email connection ID to send the reply from (uses primary if not specified)
  - `cc` string[]: CC recipients for the email reply

## Response `200`

---

[API](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api.md) · [All operations](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api/revisions/529e6717d295?raw)
