---
title: "Add a comment"
method: POST
path: "/support/v1/tickets/{ticketId}/comments"
tags: ["Support Requests"]
---

# Add a comment

`POST /support/v1/tickets/{ticketId}/comments`

Adds a comment to an existing support request. For customers, comments
are always public. For DoiT employees, comments can be marked as
private (internal notes) by setting the `private` field to `true`.

## Path parameters

- `ticketId` integer, required

## Request body

- CreateCommentRequest — Request body for adding a comment to a support ticket.
  - `body` string, required — The text content of the comment. Must not be empty.
  - `private` boolean — If true, creates a private internal note. Only honored for DoiT employees; ignored for customers.

## Response `201`

Created - Comment added to the support request.

- CommentExtAPI — A comment on a support ticket.
  - `id` integer — Comment ID.
  - `body` string — The text content of the comment.
  - `author` string — Email address of the comment author.
  - `created` integer — The time when this comment was created, in milliseconds since the epoch.
  - `attachments` object[] — File attachments on the comment.
    - `id` integer
    - `file_name` string
    - `content_url` string

## Other responses

- `400` — Bad Request - The server cannot process the request, often due to a malformed request.
- `401` — Unauthorized - Invalid API key.
- `403` — Forbidden - The client is not authorized to perform the request.
- `404` — Not Found - The requested resource does not exist.

---

[API](https://skmtc.net/doit/apis/doit-cloud-intelligence.md) · [All operations](https://skmtc.net/doit/apis/doit-cloud-intelligence/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/doit/doit-cloud-intelligence/versions/9416402fc119/schema)
