| GET,OPTIONS | /v1/AttachmentView/{AttachmentId} |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| AttachmentId | path | Guid | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| AttachmentId | form | Guid | No | |
| FileName | form | string | No | |
| MimeType | form | string | No | |
| FileSizeInKB | form | double | No | |
| Extension | form | string | No | |
| Category | form | string | No | |
| Viewer | form | string | No | |
| IsSensitive | form | bool | No | |
| CanDownload | form | bool | No | |
| ContentUrl | form | string | No | |
| MediaUrl | form | string | No | |
| PageCount | form | int | No | |
| CurrentVersionNo | form | int | No | |
| VersionCount | form | int | No | |
| TableName | form | string | No | |
| RecordId | form | int | No | |
| CreatedBy | form | string | No | |
| CreatedDate | form | DateTime? | No |
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
}