GET api/v1/documents/by-case-id/{caseId}
Get Documents by CaseId
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| caseId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of DocumentSimpleDto| Name | Description | Type | Additional information |
|---|---|---|---|
| DocumentId | integer |
None. |
|
| WP_CustomerId | integer |
None. |
|
| UserId | integer |
None. |
|
| TemplateId | integer |
None. |
|
| Title | string |
None. |
|
| Description | string |
None. |
|
| Pages | integer |
None. |
|
| TimeCreated | date |
None. |
|
| LastUpdated | date |
None. |
|
| ImageCount | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"documentId": 1,
"wP_CustomerId": 2,
"userId": 3,
"templateId": 4,
"title": "sample string 5",
"description": "sample string 6",
"pages": 1,
"timeCreated": "2025-12-08T10:18:47.171687+01:00",
"lastUpdated": "2025-12-08T10:18:47.171687+01:00",
"imageCount": 9
},
{
"documentId": 1,
"wP_CustomerId": 2,
"userId": 3,
"templateId": 4,
"title": "sample string 5",
"description": "sample string 6",
"pages": 1,
"timeCreated": "2025-12-08T10:18:47.171687+01:00",
"lastUpdated": "2025-12-08T10:18:47.171687+01:00",
"imageCount": 9
}
]
application/xml, text/xml
Sample:
<ArrayOfDocumentSimpleDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Workpilot.ServiceLayer.Models">
<DocumentSimpleDto>
<Description>sample string 6</Description>
<DocumentId>1</DocumentId>
<ImageCount>9</ImageCount>
<LastUpdated>2025-12-08T10:18:47.171687+01:00</LastUpdated>
<Pages>1</Pages>
<TemplateId>4</TemplateId>
<TimeCreated>2025-12-08T10:18:47.171687+01:00</TimeCreated>
<Title>sample string 5</Title>
<UserId>3</UserId>
<WP_CustomerId>2</WP_CustomerId>
</DocumentSimpleDto>
<DocumentSimpleDto>
<Description>sample string 6</Description>
<DocumentId>1</DocumentId>
<ImageCount>9</ImageCount>
<LastUpdated>2025-12-08T10:18:47.171687+01:00</LastUpdated>
<Pages>1</Pages>
<TemplateId>4</TemplateId>
<TimeCreated>2025-12-08T10:18:47.171687+01:00</TimeCreated>
<Title>sample string 5</Title>
<UserId>3</UserId>
<WP_CustomerId>2</WP_CustomerId>
</DocumentSimpleDto>
</ArrayOfDocumentSimpleDto>