Forum Discussion

synthesis's avatar
11 years ago

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 ret...
  • Tim_h's avatar
    Tim_h
    11 years ago

    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.