ConnectApi.QuestionAndAnswersCapabilityInput

Create or edit a question feed element or set the best answer of the existing question feed element.

This class is a subclass of ConnectApi.FeedElementCapabilityInput.

PropertyTypeDescriptionRequired or OptionalAvailable Version
bestAnswerIdStringA comment ID to use as a best answer for a question feed element. The best answer comment must already exist on the question feed element.Required to update a feed element.
Not supported when posting a feed element.
32.0
questionTitleStringTitle for a question feed element.
To edit the title of a question, use updateFeedElement(communityId, feedElementId, feedElement). Editing question titles is supported in version 34.0 and later.
Required to post a feed element.
Not supported when updating a feed element.
32.0

See Also