GET api/clients/{clientId}/attachments/list
Gets de list of attachments associated to a client.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| clientId |
The Id of the client the attachments are associated with. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
An Http response message with the following status codes: 200 = success (includes the list of attachments; this list can be empty), 400 = bad request (the request is malformed or with invalid data), 403 = forbidden (the employee doing the request is not valid), 404 = not found (this is returned when the supplied client Id can't be found.) 500 = something went wrong (the request was not processed).
Collection of Attachment| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Guid | globally unique identifier |
None. |
|
| Description | string |
None. |
|
| SizeInBytes | decimal number |
None. |
|
| Name | string |
None. |
|
| DateCreated | date |
None. |
|
| Folder | string |
None. |
|
| Extension | string |
None. |
|
| IsPublic | boolean |
None. |
|
| MimeType | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"Guid": "5d9eb2fa-25ce-4bc3-b504-57866abfd336",
"Description": "sample string 3",
"SizeInBytes": 4.1,
"Name": "sample string 5",
"DateCreated": "2026-05-05T07:16:49.5096356-04:00",
"Folder": "sample string 7",
"Extension": "sample string 8",
"IsPublic": true,
"MimeType": "sample string 10"
},
{
"Id": 1,
"Guid": "5d9eb2fa-25ce-4bc3-b504-57866abfd336",
"Description": "sample string 3",
"SizeInBytes": 4.1,
"Name": "sample string 5",
"DateCreated": "2026-05-05T07:16:49.5096356-04:00",
"Folder": "sample string 7",
"Extension": "sample string 8",
"IsPublic": true,
"MimeType": "sample string 10"
}
]
application/xml, text/xml
Sample:
<ArrayOfAttachment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CWI.Mobile.Domain.DTO">
<Attachment>
<DateCreated>2026-05-05T07:16:49.5096356-04:00</DateCreated>
<Description>sample string 3</Description>
<Extension>sample string 8</Extension>
<Folder>sample string 7</Folder>
<Guid>5d9eb2fa-25ce-4bc3-b504-57866abfd336</Guid>
<Id>1</Id>
<IsPublic>true</IsPublic>
<MimeType>sample string 10</MimeType>
<Name>sample string 5</Name>
<SizeInBytes>4.1</SizeInBytes>
</Attachment>
<Attachment>
<DateCreated>2026-05-05T07:16:49.5096356-04:00</DateCreated>
<Description>sample string 3</Description>
<Extension>sample string 8</Extension>
<Folder>sample string 7</Folder>
<Guid>5d9eb2fa-25ce-4bc3-b504-57866abfd336</Guid>
<Id>1</Id>
<IsPublic>true</IsPublic>
<MimeType>sample string 10</MimeType>
<Name>sample string 5</Name>
<SizeInBytes>4.1</SizeInBytes>
</Attachment>
</ArrayOfAttachment>