venuj1244
12 years agoContributor
Can any body suggest me how can i check no posts returned for threadID ?
I am trying to do a check if thread exists with the given threadID, I am making the API call through restadmin ("/threads/id/"+threadID). . I am not able to figure out one thing.
I tried checking it with below calls to find if no posts returned for the passed thread ID ( Ex: Assuming thread ID exists in the Knowledge but no posts returned from end point) but these calls did not help me to findout same.
- restadmin("/threads/id/"+thread).@status =”error”
- restadmin("/threads/id/"+thread)?size=0
- restadmin("/threads/id/"+thread).error?size=1
restadmin("/threads/id/"+thread) call is throwing an error