Forum Discussion
big
11 years agoAdept
This looks promising. So this the response from a v2 call for a query like: select * from message where ....? Sadly the is_answer property is not documented under : https://community.lithium.com/t5/Community-API-v2/Message-resource/ta-p/113091
Thanks for your help. will have to try that.
Thanks for your help. will have to try that.
OlivierS
11 years agoLithium Alumni (Retired)
big but it's documented elsewhere ;)
qanda.is_answer (optional) | boolean | If this post is a reply to a Q&A topic message, set this parameter to true to specify that this post is an answer. Note that this parameter can only be used when creating a message. |
- big11 years agoAdeptthanks! so you are actually referring to api v1 here. I know about this property as well and we are using it when we reply to a question to make it an answer and not a comment. However the issue in my case is not when we post but when we retrieve the information. And i simply do not get that property (qanda.is_answer) in the response when i query the api for that message as you can see in my example response in the initial thread i created.
Strange that i dont get that property. How does a example request u make look like?
Thanks for your help - schwamster11 years agoHelperAlright, got it confirmed from the lithium team. The property you refer to is only used when posting and cannot be retrieved when u query an existing message. So your tip sadyl doesnt do the trick. Thanks anyways
- eddielo10 years agoKhoros Alumni (Retired)
Please try metadata "qanda.answer" as the following and see whether it satisfy your need...
The message which is an answer will return value true while comment will return value null.
Please give me a kudo if it works.:smileyhappy:
http://<your host>/restapi/vc/messages/id/<uid>/metadata/key/qanda.answer
<response status="success"> <value type="attribute">true</value> </response>
http://<your host>/restapi/vc/messages/id/<uid>/metadata/key/qanda.answer
<response status="success"> <value type="attribute" null="true"/> </response>