Updated now rest service gives root post id in thread resource.