src/main/java/com/instructure/canvasapi/api/compatibility_synchronous/DiscussionSynchronousAPI.java
/**
     * markDiscussionReplyAsRead is a *SYNCHRONOUS* call that allows you to mark discussion topic headers as read.
     *
     * @param canvasContext
     * @param topicId
     * @param context
     * @return
     */
markDiscussionReplyAsRead is a *SYNCHRONOUS* call that allows you to mark discussion topic headers as read.
markDiscussionReplyAsRead is a * SYNCHRONOUS * call that allows you to mark discussion topic headers as read .
public static boolean markDiscussionReplyAsRead(CanvasContext canvasContext, long topicId, Context context)
    {
        try
        {
            String putURL = "api/v1" + canvasContext.toAPIString();
            putURL = String.format(putURL + "/discussion_topics/%s/read", Long.toString(topicId));
            APIHttpResponse response = HttpHelpers.httpPut(putURL, context);
            return (response.responseCode == 204 && (response.responseBody == null || response.responseBody.length() == 0));
        }
        catch(Exception E)
        {
            return false;
        }
    }
public static boolean markDiscussionReplyAsRead ( CanvasContext canvasContext , long topicId , Context context ) { try { String putURL = "api/v1" + canvasContext . toAPIString ( ) ; putURL = String . format ( putURL + "/discussion_topics/%s/read" , Long . toString ( topicId ) ) ; APIHttpResponse response = HttpHelpers . httpPut ( putURL , context ) ; return ( response . responseCode == 204 && ( response . responseBody == null || response . responseBody . length ( ) == 0 ) ) ; } catch ( Exception E ) { return false ; } }
markDiscussionReplyAsRead is a *SYNCHRONOUS* call that allows you to mark discussion topic headers as read.
markDiscussionReplyAsRead is a * SYNCHRONOUS * call that allows you to mark discussion topic headers as read .
//PUT /api/v1/courses/:course_id/discussion_topics/:topic_id/read