Get Details of a Single Attachment

Method: GET

Url: /Attachments/{AttachmentID} (e.g. /Attachments/1234)
Header: DPApiAuthenticationToken={YOUR_API_TOKEN}

Query String: None

Request Example:
GET "https://api.dataprise.com/api/v1/Attachments/709"

Header: "DPApiAuthenticationToken=abcxyz0123456789"

Response:

The API will return the details of the attachment if the provided AttachmentID is valid, with the following fields:

Column Name Data Type Remarks
Column Name:

AttachmentID

Data Type:

Integer

Remarks:

The unique ID of the record.

Column Name:

IncidentID

Data Type:

Integer

Remarks:

The ID of the incident

Column Name:

FileName

Data Type:

String

Remarks:

The file name

Column Name:

FileType

Data Type:

String

Remarks:

The file type

Column Name:

FileUrl

Data Type:

String

Remarks:

The URL of the file

Column Name:

File

Data Type:

String

Remarks:

The contents of the file in base64 format.

Column Name:

ShortDescription

Data Type:

String

Remarks:

Short description of the attachment

Column Name:

ImageThumbnail

Data Type:

String

Remarks:

A base64 string containing the image thumbnail if the file type is an image

Column Name:

CustomFields

Data Type:

List<CustomField>

Remarks:

List of custom fields (key-value pair) for this record

Sample Response:
{
"AttachmentID": 709,
"FileName": "Test Blue.jpg",
"DateCreated": "2020-01-02T16:14:36.79",
"CreatedBy": "Bhatt, S.",
"File": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2w2Q==",
"IncidentID": 342510,
"ImageThumbnail": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBAooooA/9k=",
"FileType": "image/jpeg",
"FileURL": "https://jmsweb.dataprise.com/cc/filelibget.aspx?FileLibID=708",
"ShortDescription": "Test Blue.jpg",
"CustomFields": null
}