Forum Discussion
If you use the REST API message search call, you can filter by various criteria. To get only messages that are solutions (i.e. the reply to a question that has been marked as the solution), you can add the parameter "solution" and set the value to true.
For example:
http://lithosphere.lithium.com/restapi/vc/search/messages?q=feedback&solution=true
If instead you wanted messages that have been solved (i.e. questions that have received a solution), you can use the parameter "solved" and set the value to true.
For example:
http://lithosphere.lithium.com/restapi/vc/search/messages?q=feedback&solved=true
The first essentially gives you the "answers", and the latter essentially gives you the "questions".
Does that answer your question, or were you looking for something different?
- dhpawar12 years agoHelper
I am looking to Rest call which searches for relevant posts /threads using the keyword. also trying to filter the result such that i get back only threads that has accepted soultions. is it possibale in singal Rest API Call?
Thanks
- AdamN12 years agoKhoros Oracle
When searching, you will only get results back in messages instead of threads. You can get topics (the root messages, or questions) using the method I described previously. But to get the corresponding thread object (root message plus reqplies) you will need to make an additional REST API call per topic message.
Alternately, you could combine these calls into an endpoint using the techniques described here:
Related Content
- 3 years ago
- 3 years ago
- 3 years ago
- 8 years ago
- 10 years ago