PUT api/Template
Update a Template
Request Information
URI Parameters
None.
Body Parameters
TemplateDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| FileName | string |
None. |
|
| FileType | string |
None. |
|
| FileImage | Collection of byte |
None. |
|
| TemplateTypeId | integer |
None. |
|
| IncludeHeader | boolean |
None. |
|
| IncludeFooter | boolean |
None. |
|
| InsertBy | integer |
None. |
|
| InsertDate | date |
None. |
|
| ActiveDate | date |
None. |
|
| IsActive | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"FileName": "sample string 2",
"FileType": "sample string 3",
"FileImage": "QEA=",
"TemplateTypeId": 4,
"IncludeHeader": true,
"IncludeFooter": true,
"InsertBy": 5,
"InsertDate": "2025-10-29T05:01:46.4953488-06:00",
"ActiveDate": "2025-10-29T05:01:46.4953488-06:00",
"IsActive": true
}
text/html
Sample:
{"Id":1,"FileName":"sample string 2","FileType":"sample string 3","FileImage":"QEA=","TemplateTypeId":4,"IncludeHeader":true,"IncludeFooter":true,"InsertBy":5,"InsertDate":"2025-10-29T05:01:46.4953488-06:00","ActiveDate":"2025-10-29T05:01:46.4953488-06:00","IsActive":true}
application/xml, text/xml
Sample:
<TemplateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrainingFundREST._DAL"> <ActiveDate>2025-10-29T05:01:46.4953488-06:00</ActiveDate> <FileImage>QEA=</FileImage> <FileName>sample string 2</FileName> <FileType>sample string 3</FileType> <Id>1</Id> <IncludeFooter>true</IncludeFooter> <IncludeHeader>true</IncludeHeader> <InsertBy>5</InsertBy> <InsertDate>2025-10-29T05:01:46.4953488-06:00</InsertDate> <IsActive>true</IsActive> <TemplateTypeId>4</TemplateTypeId> </TemplateDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
StatusDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| msg | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": 1,
"msg": "sample string 1"
}
text/html
Sample:
{"id":1,"msg":"sample string 1"}
application/xml, text/xml
Sample:
<StatusDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrainingFundREST._DAL"> <id>1</id> <msg>sample string 1</msg> </StatusDTO>