<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 .other suffix or ?format=other

HTTP + OTHER

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

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

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