Newer Version Available

This content describes an older version of this product. View Latest

ConnectApi.​Comment

A comment.
Name Type Description Available Version
attachment ConnectApi.​FeedItem​Attachment If the comment contains an attachment, property value is ContentAttachment. If the comment does not contain an attachment, it is null.

As of version 32.0, use the capabilities property.

Important

28.0–31.0
body ConnectApi.​FeedBody Body of the comment. 28.0
capabilities ConnectApi.​CommentCapabilities Capabilities associated with the comment, such as any file attachments. 32.0
clientInfo ConnectApi.​ClientInfo Information about the connected app used to authenticate the connection. 28.0
createdDate Datetime ISO 8601 date string, for example, 2011-02-25T18:24:31.000Z. 28.0
feedElement ConnectApi.​​Reference Feed element on which the comment is posted.
feedItem ConnectApi.​​Reference Feed item on which the comment is posted.

As of version 32.0, use the feedElement property.

Important

28.0–31.0
id String Comment’s 18–character ID. 28.0
isDelete​Restricted Boolean If this property is true, the context user can’t delete the comment. If this property is false, the context user might be able to delete the comment. 28.0
likes ConnectApi.​Chatter​Like​Page The first page of likes for the comment.

This property has no information for comments on direct messages.

28.0
likesMessage ConnectApi.​Message​Body A message body that describes who likes the comment.

This property is null for comments on direct messages.

28.0
moderation​Flags ConnectApi.​ModerationFlags Information about the moderation flags on a comment. If ConnectApi.Features.communityModeration is false, this property is null. 29.0
myLike ConnectApi.​​Reference If the context user liked the comment, this property is a reference to the specific like, null otherwise.

This property is null for comments on direct messages.

28.0
parent ConnectApi.​​Reference Information about the parent feed-item for this comment. 28.0
relativeCreatedDate String The created date formatted as a relative, localized string, for example, “17m ago” or “Yesterday.” 28.0
threadLevel Integer Level of nesting for a comment. 0 indicates a standard comment with a parent post. 1 indicates a threaded comment with a parent comment and a parent post. 2 indicates a threaded comment with two parent comments and a parent post. The UI is limited to these three levels. 44.0
threadParentId String ID of the parent comment for a threaded comment. 44.0
type ConnectApi.​CommentType Enum Type of comment.
  • ContentComment—Comment holds a content capability.
  • TextComment—Comment contains only text.
28.0
url String Connect REST API URL to this comment. 28.0
user ConnectApi.​User​Summary Information about the comment author. 28.0