nchungie
10 years agoGuide
Cannot post a "not helpful" rating
I'm using this documentation as reference:
Here is my angular resource code:
setHelpfulness: {
method: 'POST',
data : {
'restapi.session_key': sessionService.get('userSessionKey'),
'rating.value' : '@rating.value'
},
url: apiUrl + 'messages/id/:messageId/ratings/key/tkb_helpfulness/ratings/add'
}
When I post a "1" (for helpful) it works.
When I post a "-2" (for not helpful) based on this documentation: https://community.lithium.com/t5/Community-API/bd-p/developers-rest-api?branch=HelpfulnessRatingSummary, I get the following error:
{"response":{"status":"error","error":{"code":303,"message":"error.lithium.restapi.user_not_registered.body.body"}}}
I thought maybe I was just logged out, so I logged back in, but the error continues.