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.
Get started with Integration Hub | Sitefinity Cloud
This free lesson teaches administrators, marketers, and other business professionals how to use Sitefinity Integration Hub to create automated workflows between Sitefinity and other business systems.
Web Security for Sitefinity Administrators
This free lesson teaches administrators the basics about protecting your Sitefinity instance and your sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
Foundations of Sitefinity ASP.NET Core Development
The free on-demand video course teaches developers how to use Sitefinity ASP.NET Core and take advantage of its decoupled architecture and modern development model.