Newer Version Available

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

Feed Elements Capability, Question and Answers

Access question and answers for a feed element, or update question and answers on a feed element.
Resource
1/chatter/feed-elements/feedElementId/capabilities/question-and-answers
1/connect/communities/communityId/chatter/feed-elements/feedElementId/capabilities/question-and-answers
Available version
32.0
Requires Chatter
Yes
HTTP methods
GET, PATCH
Request body for PATCH
Root XML tag
1<questionAndAnswersCapability>
2   <bestAnswerId>0D7D00000000lMAKAY</bestAnswerId>
3</questionAndAnswersCapability>
JSON example
1{
2   "bestAnswerId": "0D7D00000000lMAKAY"
3}
Properties
Name Type Description Required or Optional Available Version
bestAnswerId String A 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 PATCH the best answer.

Not supported in POST requests.

32.0
questionTitle String Title for a question feed element.

To edit the title of a question, make a PATCH request to /chatter/feed-elements​/feedElementId. Editing question titles is supported in version 34.0 and later.

Required to POST or PATCH a question. 32.0
Request parameters for PATCH
Parameter Name Type Description Required or Optional Available Version
bestAnswerId String A 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 32.0
Response body for GET, PATCH
Question and Answers Capability

If the feed element doesn’t support this capability, the response is 404: Not Found.