Trendsic Platform Service

<back to all web services

AttachmentViewRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/AttachmentView/{AttachmentId}
AttachmentViewRequest Parameters:
NameParameterData TypeRequiredDescription
AttachmentIdpathGuidNo
AttachmentViewResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
AttachmentIdformGuidNo
FileNameformstringNo
MimeTypeformstringNo
FileSizeInKBformdoubleNo
ExtensionformstringNo
CategoryformstringNo
ViewerformstringNo
IsSensitiveformboolNo
CanDownloadformboolNo
ContentUrlformstringNo
MediaUrlformstringNo
PageCountformintNo
CurrentVersionNoformintNo
VersionCountformintNo
TableNameformstringNo
RecordIdformintNo
CreatedByformstringNo
CreatedDateformDateTime?No

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.

GET /v1/AttachmentView/{AttachmentId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
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"}