POST
Add a comment to a ticket

Authorizations

Authorization
string
header
required

Obtain a token via POST /api/v1/oauth/token (password grant) and send it as Authorization: Bearer <token>.

Headers

If-Match
string

The ticket's current _rev for optimistic concurrency. Omit for last-write-wins.

Path Parameters

database
string
required

Project identifier (each project has its own database). Obtain it from GET /api/v2/data/projects.

ticketId
string
required

Body

application/json

A closed schema: body is the only accepted key. Any other key — including note, author, time, public, attachments and allowedUsers, all of which appear on the stored comment — is rejected with 422 naming it, rather than ignored. The author and the timestamp come from the token and the server clock.

body
string
required

Required. The comment text, stored as the comment's note. Must be a non-blank string: null, a number, an empty string and whitespace-only text are all 422.

Example:

"Re-inspected: the crack has not moved."

Response

The stored comment.

A comment as stored on the ticket, and as returned by POST /tickets/{database}/{ticketId}/comments. The same six fields appear in the comments array of a ticket read.

note
string

The comment text. Empty string on the comment an attachment upload creates.

Example:

"Re-inspected: the crack has not moved."

author
string<email>

The token's user. Not caller-settable.

Example:

"inspector@example.com"

time
string<date-time>

When the comment was stored, set by the server. It is also the key that ties the comment to its timeline entry, so it is worth keeping if you need to correlate the two later.

Example:

"2026-09-09T13:04:12.652Z"

public
boolean

Always true for a comment written through the API. A non-public comment is visible only to Accountable, Support and the users named in allowedUsers, which an API caller cannot nominate.

Example:

true

attachments
string[]

File names attached to this comment — empty for a plain comment, and one entry (the stored photo name) for the comment an attachment upload creates.

Example:
allowedUsers
string[]

Always empty for a comment written through the API.

Example: