Newer Version Available

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

ConnectApi.​​FeedItem​​Input Class

Used to create rich feed items, for example, feed items that include @mentions or files.

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

Property Type Description Required or Optional 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

Optional 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.

Required unless the feed item has a link capability or a content capability. 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

Optional 28.0–31.0
original​FeedElementId String The 18-character ID of a feed element to share. Optional 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

Optional 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.
Optional 28.0