Skip to content

IComment

Defined in: tickets/comments.types.ts:5

A comment on a Zendesk ticket, public or an internal note.

optional attachments?: IAttachment[] | null

Defined in: tickets/comments.types.ts:7

Attachments, if any. See Attachment.


optional audit_id?: number | null

Defined in: tickets/comments.types.ts:9

The id of the ticket audit record. See Show Audit.


optional author_id?: number | null

Defined in: tickets/comments.types.ts:11

The id of the comment author. See Author id.


optional body?: string | null

Defined in: tickets/comments.types.ts:13

The comment string. See Bodies.


optional created_at?: string | null

Defined in: tickets/comments.types.ts:15

The time the comment was created.


optional html_body?: string | null

Defined in: tickets/comments.types.ts:17

The comment formatted as HTML. See Bodies.


optional id?: number | null

Defined in: tickets/comments.types.ts:19

Automatically assigned when the comment is created.


optional metadata?: IMetadata | null

Defined in: tickets/comments.types.ts:21

System information (web client, IP address, etc.) and comment flags, if any. See Comment flags.


optional plain_body?: string | null

Defined in: tickets/comments.types.ts:23

The comment presented as plain text. See Bodies.


optional public?: boolean | null

Defined in: tickets/comments.types.ts:25

true if a public comment; false if an internal note. The initial value set on ticket creation persists for any additional comment unless you change it.


optional type?: "Comment" | "VoiceComment" | null

Defined in: tickets/comments.types.ts:27

Comment or VoiceComment. The JSON object for adding voice comments to tickets is different. See Adding voice comments to tickets.


optional uploads?: string[] | null

Defined in: tickets/comments.types.ts:29

List of tokens received from uploading files for comment attachments. The files are attached by creating or updating tickets with the tokens. See Attaching files in Tickets.


optional via?: IVia | null

Defined in: tickets/comments.types.ts:31

Describes how the object was created. See the Via object reference.