Comment thread methods

Each method represents a specific activity related to managing threads of comments, for example updating a thread status. You use each method by sending a request to the URI in a certain format. Upon successful request, the server always responds with a 200 OK status code.

In the following table, you can see details on the various methods you can use to manage comment threads.

Get a collection of threads

HTTP POST request: /RestApi/comments-api/threads/filter

Posted data JSON format:

Text
{
    "ThreadKey": ["String"]
}

Total number of threads and details about the requested threads by their keys:

Text
{
    "TotalCount":2,
    "Items":[
        {
            "Key":"String",
            "Type" : "String",
            "CommentsCount" : 0,
            "Title" : "String",
            "Language" : "String"
            "IsClosed" : true,
            "GroupKey" : "String",
            "ItemUrl" : "String",
            "DataSource" : "String"
        },
        {
            "Key":"String",
            "Type" : "String",
            "CommentsCount" : 0,
            "Title" : "String",
            "Language" : "String"
            "IsClosed" : true,
            "GroupKey" : "String",
            "ItemUrl" : "String",
            "DataSource" : "String"
        }
    ]
}

Update the thread status

HTTP PUT request: /RestApi/comments-api/threads

Posted data JSON format

Text
{
    "Key":"String",
    "IsClosed":false
}

Details about the updated thread:

Text
{
    "Key":"String",
    "Type":"String",
    "CommentsCount":0,
    "Title":"String",
    "Language":"String",
    "IsClosed":false,
    "GroupKey":"String",
    "ItemUrl":"String",
    "DataSource":"String"
}
Want to learn more?
Enhance your Sitefinity skills by enrolling in free training sessions. Become Sitefinity certified through Progress Education Community to strengthen your professional credentials.