Newer Version Available

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

ConnectApi.​​FeedItem​​Input Class

Used to add rich feed items, for example, feed items that include @mentions or files. Also used to bookmark a feed item.

Subclass of ConnectApi.​FeedElementInput Class as of version 31.0.

Property Type Description Available Version
attachment ConnectApi.​Feed​Item​Attachment​​Input Class Specifies the attachment for the feed item. The feed item type is inferred based on the provided attachment.

As of API version 32.0, use the inherited capabilities property.

Important

28.0–31.0
body ConnectApi.​Message​​Body​Input Class Message body. The body can contain up to 25 mentions.

If you specify originalFeedItemId or originalFeedElementId to share a feed item, use this property to add a comment.

28.0
isBookmarked​​ByCurrentUser Boolean Specifies if the new feed item should be bookmarked for the user (true) or not (false).

As of API version 32.0, use the capabilities.bookmarks.isBookmarkedByCurrentUser property.

Important

28.0–31.0
original​FeedElementId String The 18-character ID of a feed element to share. 31.0
original​FeedItemId String The 18-character ID of a feed item to share.

As of API version 32.0, use the originalFeedElementId property.

Important

28.0–31.0
visibility ConnectApi.​FeedItem​VisibilityType Enum Specifies the type of users who can see a feed item.
  • AllUsers—Visibility is not limited to internal users.
  • InternalUsers—Visibility is limited to internal users.
28.0