Trendsic Platform Service

<back to all web services

AttachmentViewRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/AttachmentView/{AttachmentId}
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class AttachmentViewRequest
{
    open var AttachmentId:UUID? = null
}

open class AttachmentViewResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var AttachmentId:UUID? = null
    open var FileName:String? = null
    open var MimeType:String? = null
    open var FileSizeInKB:Double? = null
    open var Extension:String? = null
    open var Category:String? = null
    open var Viewer:String? = null
    open var IsSensitive:Boolean? = null
    open var CanDownload:Boolean? = null
    open var ContentUrl:String? = null
    open var MediaUrl:String? = null
    open var PageCount:Int? = null
    open var CurrentVersionNo:Int? = null
    open var VersionCount:Int? = null
    open var TableName:String? = null
    open var RecordId:Int? = null
    open var CreatedBy:String? = null
    open var CreatedDate:Date? = null
}

Kotlin AttachmentViewRequest 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.

GET /v1/AttachmentView/{AttachmentId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"AttachmentId":"00000000000000000000000000000000","FileName":"String","MimeType":"String","FileSizeInKB":0,"Extension":"String","Category":"String","Viewer":"String","IsSensitive":false,"CanDownload":false,"ContentUrl":"String","MediaUrl":"String","PageCount":0,"CurrentVersionNo":0,"VersionCount":0,"TableName":"String","RecordId":0,"CreatedBy":"String","CreatedDate":"0001-01-01T00:00:00.0000000"}