GET api/v1/templates/{templateId}?shallow={shallow}
Get a Template by TemplateId
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| templateId | integer |
Required |
|
| shallow | boolean |
Default value is False |
Body Parameters
None.
Response Information
Resource Description
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:18:47.4478437+01:00",
"lastUpdated": "2025-12-08T10:18:47.4478437+01:00",
"filePath": "sample string 4"
}
application/xml, text/xml
Sample:
<TemplateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Workpilot.ServiceLayer.Models"> <BinaryData>QEA=</BinaryData> <FileName>sample string 2</FileName> <FilePath>sample string 4</FilePath> <Id>1</Id> <LastUpdated>2025-12-08T10:18:47.4478437+01:00</LastUpdated> <Timestamp>2025-12-08T10:18:47.4478437+01:00</Timestamp> </TemplateDto>