Newer Version Available

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

ConnectApi.​FeedElementCapabilitiesInput

A container for all capabilities that can be included when creating a new feed element.

In API versions 30.0 and earlier, every feed item supported comments, likes, topics, and so on. In versions 31.0 and later, every feed item (and feed element) can have a unique set of capabilities. If a capability property exists on a feed element, that capability is available, even if the capability property doesn’t have a value. For example, if the ChatterLikes capability property exists on a feed element (with or without a value), the context user can like that feed element. If the capability property doesn’t exist, it isn’t possible to like that feed element. A capability can also contain associated data. For example, the Moderation capability contains data about moderation flags.

Property Type Description Required or Optional Available Version
bookmarks ConnectApi.​BookmarksCapability​Input Describes bookmarks added to this feed element. Optional 32.0
canvas ConnectApi.​CanvasCapability​Input Describes a canvas app added to this feed element. Optional 32.0
content ConnectApi.​ContentCapability​Input Describes content added to this feed element. Optional 32.0
link ConnectApi.​LinkCapabilityInput Describes a link added to this feed element. Optional 32.0
poll ConnectApi.​PollCapabilityInput Describes a poll added to this feed element. Optional 32.0
questionAnd​Answers ConnectApi.​QuestionAndAnswers​CapabilityInput Describes a question and answer capability added to this feed element. Optional 32.0