I am trying to utilize REST api to get/set discussion list fields. I am facing issue for following fields,
I am able to set below fields using CSOM but I want to set it using REST api because I am planning to utilize outside of SharePoint.
Best Reply: BestAnswerId
Mark as Featured: IsFeatured
Enterprise keywords/tags
Update: below is my data. when I call api using below data, Title gets updated but not BestAnwserId.
var itemProperties = {
'__metadata': { "type": "SP.Data.Community_x0020_DiscussionListItem" },
'BestAnswerId':64,
'Title':"updatedd"
};