Updating HasRead and ViewCount properties of a forum thread using REST API

Updating HasRead and ViewCount properties of a forum thread using REST API

This question is answered

How can I update the HasRead and ViewCount properties using the REST API? I'm showing unanswered questions in my application and users can view and answer them. I'd like to be able to update the HasRead and ViewCount properties accordingly as if the user was navigating the community website. How can this be done? I don't see those properties in the documentation for updating a thread.

Thanks,

Michael

Verified Answer
  • For 7.0 we added a HasRead property to the Forum Thread SHOW request so you can specify whether to mark the thread as read or not when getting it:

    telligent.com/.../29604.show-forum-thread-rest-endpoint.aspx

    We also added a mark as read endpoint for forum threads (not documented yet) at the following url: ~/api.ashx/v2/forums/{forumid}/threads/{threadid}/read.{xml/json}

    But nothing really available prior to 7.0.

All Replies
  • For 7.0 we added a HasRead property to the Forum Thread SHOW request so you can specify whether to mark the thread as read or not when getting it:

    telligent.com/.../29604.show-forum-thread-rest-endpoint.aspx

    We also added a mark as read endpoint for forum threads (not documented yet) at the following url: ~/api.ashx/v2/forums/{forumid}/threads/{threadid}/read.{xml/json}

    But nothing really available prior to 7.0.

  • Perfect. Thanks.