GET api/v1/templates?shallow={shallow}
Get a list of Templates
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| shallow | boolean |
Default value is False |
Body Parameters
None.
Response Information
Resource Description
Collection of TemplateDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| FileName | string |
None. |
|
| BinaryData | Collection of byte |
None. |
|
| Timestamp | date |
None. |
|
| LastUpdated | date |
None. |
|
| FilePath | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"id": 1,
"fileName": "sample string 2",
"binaryData": "QEA=",
"timestamp": "2025-12-08T10:21:34.6758263+01:00",
"lastUpdated": "2025-12-08T10:21:34.6758263+01:00",
"filePath": "sample string 4"
},
{
"id": 1,
"fileName": "sample string 2",
"binaryData": "QEA=",
"timestamp": "2025-12-08T10:21:34.6758263+01:00",
"lastUpdated": "2025-12-08T10:21:34.6758263+01:00",
"filePath": "sample string 4"
}
]
application/xml, text/xml
Sample:
<ArrayOfTemplateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Workpilot.ServiceLayer.Models">
<TemplateDto>
<BinaryData>QEA=</BinaryData>
<FileName>sample string 2</FileName>
<FilePath>sample string 4</FilePath>
<Id>1</Id>
<LastUpdated>2025-12-08T10:21:34.6758263+01:00</LastUpdated>
<Timestamp>2025-12-08T10:21:34.6758263+01:00</Timestamp>
</TemplateDto>
<TemplateDto>
<BinaryData>QEA=</BinaryData>
<FileName>sample string 2</FileName>
<FilePath>sample string 4</FilePath>
<Id>1</Id>
<LastUpdated>2025-12-08T10:21:34.6758263+01:00</LastUpdated>
<Timestamp>2025-12-08T10:21:34.6758263+01:00</Timestamp>
</TemplateDto>
</ArrayOfTemplateDto>