Newer Version Available
ConnectApi.FeedItemInput 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.FeedItemAttachmentInput Class | Specifies the attachment for the feed item. The feed item type is inferred based on the provided attachment. | Optional | 28.0–31.0 |
| body | ConnectApi.MessageBodyInput Class | Message body. The body can contain up to 25
mentions. If you specify originalFeedElementId to share a feed item, use the body property to add the first comment to the feed item. To edit this property in a feed item, use updateFeedElement(communityId, feedElementId, feedElement). Editing feed posts is supported in version 34.0 and later. |
Required unless the feed item has a link capability or a content capability. | 28.0 |
| isBookmarkedByCurrentUser | Boolean | Specifies if the new feed item should be bookmarked for the user (true) or not (false). | Optional | 28.0–31.0 |
| originalFeedElementId | String | To share a feed element, specify its 18-character ID. | Optional | 31.0 |
| originalFeedItemId | String | To share a feed item, specify its 18-character ID. | Optional | 28.0–31.0 |
| visibility | ConnectApi.FeedItemVisibilityType Enum |
Specifies the type of users who can see a
feed item.
|
Optional | 28.0 |