<back to all web services

CommentUpdateRequest

The following routes are available for this service:
PUT/RestApi/comments-api/comments
namespace Telerik.Sitefinity.Services.Comments.DTO

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type CommentUpdateRequest() = 
        member val Key:String = null with get,set
        member val Message:String = null with get,set
        member val Status:String = null with get,set
        member val Name:String = null with get,set
        member val Email:String = null with get,set
        member val CustomData:String = null with get,set
        member val Rating:Nullable<Decimal> = new Nullable<Decimal>() with get,set

    [<AllowNullLiteral>]
    type CommentResponse() = 
        member val Key:String = null with get,set
        member val Name:String = null with get,set
        member val Message:String = null with get,set
        member val DateCreated:DateTime = new DateTime() with get,set
        member val ProfilePictureUrl:String = null with get,set
        member val ProfilePictureThumbnailUrl:String = null with get,set
        member val Status:String = null with get,set
        member val Email:String = null with get,set
        member val ThreadKey:String = null with get,set
        member val AuthorIpAddress:String = null with get,set
        member val CustomData:String = null with get,set
        member val Rating:Nullable<Decimal> = new Nullable<Decimal>() with get,set

F# CommentUpdateRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

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

{"Key":"String","Message":"String","Status":"String","Name":"String","Email":"String","CustomData":"String","Rating":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Key":"String","Name":"String","Message":"String","DateCreated":"\/Date(-62135596800000-0000)\/","ProfilePictureUrl":"String","ProfilePictureThumbnailUrl":"String","Status":"String","Email":"String","ThreadKey":"String","AuthorIpAddress":"String","CustomData":"String","Rating":0}