synthesis
11 years agoGuide
REST API - Returning a "solution" flag in messages
Hello! I've spent the last hour looking around the forums and didn't see an answer to my question so here it goes...
Is there a way to return a "solution" flag/node/whatever with each message returned from a call like this:
I just want to be able to tell if a specific message solved a thread or not.
Ideally I'd like to avoid making additional calls to find the solution to a thread but I'm open to just about anything at this point.
Can anyone help?
synthesis wrote:Is there an API call I can make to find out if a specific thread (by thread ID) has a solution?
restapi/vc/threads/id/XXX will return the details of a thread, with a value in "Solutions" if one exists.
<solutions><solution type="message" href="/messages/id/XXXX">
If there is no solution it returns like this:
<solutions/>
That should get what you need for each one.