Forum Discussion
Hello nchungie!
Sorry for the confusion here. I took your example code snippet (thank you, by the way, it was very helpful) and I translated it to a sample REST API call that can be made via HTTP:
The above failed, which is also what you were encountering. So, I tried manipulating the integer and did some poking around - mso was very helpful in pointing out that in actuality, a "Yes"/"Helpful" response has a value of "1", and a "No"/"Unhelpful" response has a value of "0". The API documentation needs to be updated and we are working with our Docs team to update that to be accurate; I figured I'd respond in here so that you know what to use for your code.
Hope this helps!
Ted
I tried using "0" instead of "-2" several times.
I get the same error:
- TedC10 years agoLithium Alumni (Retired)
The 303 error code is something different than what we were encountering. Are you authenticated as a user with REST API permissions when executing the call to your community (from your application or from a normal browser)? The expected response should be a success, which is what we encountered when attempting to validate using the method in my previous post.