Forum Discussion
did you do it with url?
I'm trying to do similar and got to issue,
depth=0
not getting through...
https://api.lithium.com/community/2.0/tenantID/search?q=select id, subject, body, board.id, board.title, tags, labels, view_href, post_time_friendly, metrics, tags.count(*), labels.count(*) FROM messages WHERE depth=0 AND board.id ='yourBoarID' ORDER BY post_time DESC&client-id=yourClientID&&api.pretty_print=true
if no depth=0 or depth>0, it works fine. But I need depth=0, only top messages, no replies., and only tkb articles...
Any ideas? PaoloT?
Hi irach15
maybe it's a stupid question, but you seem to be passing a board id in your filters
AND board.id ='yourBoarID'
so I would expect only messages from that board's interaction style to be returned. The depth filter should work fine too, it could help if you can share the error message you get?
To my knowledge the call should return TKB articles in general, so if it's not doing that I suggest opening a Support Case with our support department for them to investigate.
michaelaar - to make a call via HTTPS, please familiarize with the documentation available here as a starting point. Let us know how it goes!
hope it helps