Newer Version Available

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

ConnectApi.Comment​​Input Class

Used to add rich comments, for example, comments that include @mentions or attachments.

Property Type Description Available Version
attachment ConnectApi.​Feed​Item​Attachment​​Input Class Optional. Specifies an attachment for the comment. Valid values are:
  • ContentAttachmentInput
  • NewFileAttachmentInput
LinkAttachmentInput is not permitted for comments.

As of version 32.0, use the capabilities property.

Important

28.0-31.0
body ConnectApi.​Message​​Body​Input Class Description of message body. The body can contain up to 25 mentions.

To edit this property in a comment, use updateComment(communityId, commentId, comment). Editing comments is supported in version 34.0 and later.

28.0
capabilities ConnectApi.​CommentCapabilities Class Optional. Specifies any capabilities for the comment, such as a file attachment. 32.0