Forum Discussion

sdujari's avatar
sdujari
Mentor
11 years ago

How can I use Rest API to pull all articles from a specific TKB?

I would like to pull all articles from a specific board (based on its ID) using the Rest API.

 

Right now we are using the following:

 

<#assign resources = rest("search/messages?q=${productName?url}&location=board:${productID}CustomerStories&restapi.format_detail=full_list_element&restapi.response_style=view&search_type=thread&filter=location,includeTkbs&include_tkbs=true").messages />

 

${productID}CustomerStories is the ID of the board I am pulling from. The ${productName} variable is from some old code when we were filtering by label and I would like to build this exact same query but without using that unneccesary variable.

  • Try following
    /restapi/vc/boards/id/[id]/topics/style/tkb/recent
    /restapi/vc/boards/id/[id]/posts/style/tkb/recent

5 Replies