<back to all web services

ThreadUpdateRequest

The following routes are available for this service:
PUT/RestApi/comments-api/threads
import java.math.*
import java.util.*
import net.servicestack.client.*


open class ThreadUpdateRequest
{
    var Key:String? = null
    var IsClosed:Boolean? = null
}

open class ThreadResponse
{
    var Key:String? = null
    var Type:String? = null
    var CommentsCount:Int? = null
    var Title:String? = null
    var Language:String? = null
    var IsClosed:Boolean? = null
    var GroupKey:String? = null
    var ItemUrl:String? = null
    var DataSource:String? = null
    var AverageRating:BigDecimal? = null
}

Kotlin ThreadUpdateRequest DTOs

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

HTTP + JSV

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/jsv
Content-Type: text/jsv
Content-Length: length

{
	Key: String,
	IsClosed: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

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