GET api/Attachment/GetUnitAttachments?SerialNumber={SerialNumber}
Get a list of attachments to a specified unit
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
SerialNumber | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Get a list of attachments to a specified unit
Collection of UnitAttachmentModelName | Description | Type | Additional information |
---|---|---|---|
SerialNumber |
Unit serialnumber |
string |
None. |
Id |
File attachment id |
integer32 |
None. |
Filename |
Filename |
string |
None. |
URL |
URL |
string |
None. |
UploadDate | date |
Null values possible. |
|
ImageTimestamp | date |
Null values possible. |
|
Longitude | decimal number |
Null values possible. |
|
Latitude | decimal number |
Null values possible. |
Response Formats
application/json, text/json
Sample:
[ { "SerialNumber": "sample string 1", "Id": 2, "Filename": "sample string 3", "URL": "sample string 4", "UploadDate": "2024-11-21T09:41:13.2231838+00:00", "ImageTimestamp": "2024-11-21T09:41:13.2231838+00:00", "Longitude": 1.1, "Latitude": 1.1 }, { "SerialNumber": "sample string 1", "Id": 2, "Filename": "sample string 3", "URL": "sample string 4", "UploadDate": "2024-11-21T09:41:13.2231838+00:00", "ImageTimestamp": "2024-11-21T09:41:13.2231838+00:00", "Longitude": 1.1, "Latitude": 1.1 } ]
application/xml, text/xml
Sample:
<ArrayOfUnitAttachmentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models"> <UnitAttachmentModel> <Filename>sample string 3</Filename> <Id>2</Id> <ImageTimestamp>2024-11-21T09:41:13.2231838+00:00</ImageTimestamp> <Latitude>1.1</Latitude> <Longitude>1.1</Longitude> <SerialNumber>sample string 1</SerialNumber> <URL>sample string 4</URL> <UploadDate>2024-11-21T09:41:13.2231838+00:00</UploadDate> </UnitAttachmentModel> <UnitAttachmentModel> <Filename>sample string 3</Filename> <Id>2</Id> <ImageTimestamp>2024-11-21T09:41:13.2231838+00:00</ImageTimestamp> <Latitude>1.1</Latitude> <Longitude>1.1</Longitude> <SerialNumber>sample string 1</SerialNumber> <URL>sample string 4</URL> <UploadDate>2024-11-21T09:41:13.2231838+00:00</UploadDate> </UnitAttachmentModel> </ArrayOfUnitAttachmentModel>