<back to all web services

ThreadUpdateRequest

The following routes are available for this service:
PUT/RestApi/comments-api/threads
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Telerik.Sitefinity.Services.Comments.DTO

Namespace Global

    Namespace Telerik.Sitefinity.Services.Comments.DTO

        Public Partial Class ThreadResponse
            Public Overridable Property Key As String
            Public Overridable Property Type As String
            Public Overridable Property CommentsCount As Integer
            Public Overridable Property Title As String
            Public Overridable Property Language As String
            Public Overridable Property IsClosed As Boolean
            Public Overridable Property GroupKey As String
            Public Overridable Property ItemUrl As String
            Public Overridable Property DataSource As String
            Public Overridable Property AverageRating As Nullable(Of Decimal)
        End Class

        Public Partial Class ThreadUpdateRequest
            Public Overridable Property Key As String
            Public Overridable Property IsClosed As Boolean
        End Class
    End Namespace
End Namespace

VB.NET ThreadUpdateRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /RestApi/comments-api/threads HTTP/1.1 
Host: www.asg.com.au 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Key":"String","IsClosed":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Key":"String","Type":"String","CommentsCount":0,"Title":"String","Language":"String","IsClosed":false,"GroupKey":"String","ItemUrl":"String","DataSource":"String","AverageRating":0}