| GET,OPTIONS | /v1/AttachmentView/{AttachmentId} |
|---|
export class AttachmentViewResponse
{
public ResponseStatus: ResponseStatus;
public AttachmentId: string;
public FileName: string;
public MimeType: string;
public FileSizeInKB: number;
public Extension: string;
public Category: string;
public Viewer: string;
public IsSensitive: boolean;
public CanDownload: boolean;
public ContentUrl: string;
public MediaUrl: string;
public PageCount: number;
public CurrentVersionNo: number;
public VersionCount: number;
public TableName: string;
public RecordId: number;
public CreatedBy: string;
public CreatedDate?: string;
public constructor(init?: Partial<AttachmentViewResponse>) { (Object as any).assign(this, init); }
}
export class AttachmentViewRequest
{
public AttachmentId: string;
public constructor(init?: Partial<AttachmentViewRequest>) { (Object as any).assign(this, init); }
}
TypeScript AttachmentViewRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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-01
}