PUT api/Templates/{id}
Updates a template.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The id of the template to update. |
globally unique identifier |
Required |
Body Parameters
The template model to update with.
TemplateDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| TemplateCode | globally unique identifier |
None. |
|
| Name | string |
Required String length: inclusive between 0 and 250 |
|
| Description | string |
None. |
|
| CreationDate | date |
None. |
|
| UserId | globally unique identifier |
None. |
|
| TenantId | globally unique identifier |
None. |
|
| TenantName | string |
None. |
|
| PublishDate | date |
None. |
|
| DeletedDate | date |
None. |
|
| Version | string |
None. |
|
| WorkflowDefinitionId | globally unique identifier |
Required |
|
| WorkflowDefinitionCode | globally unique identifier |
None. |
|
| ThumbnailFileData | Collection of byte |
None. |
|
| ThumbnailPath | string |
None. |
|
| Fonts | Collection of FontDto |
None. |
|
| Filters | Collection of TemplatefilterCategoryDto |
None. |
|
| BudgetCodes | Collection of string |
None. |
|
| PreviewKey | string |
None. |
|
| Preview | PreviewDto |
None. |
|
| FolderId | globally unique identifier |
None. |
|
| LeadTime | integer |
None. |
|
| EnableTimeSelection | boolean |
None. |
|
| EnableScheduling | boolean |
None. |
|
| AllowableSchedulingDays | WeekDayDto |
None. |
|
| TemplateType | TemplateTypeDto |
None. |
|
| ViewPermissionGroupId | globally unique identifier |
None. |
|
| EditPermissionGroupId | globally unique identifier |
None. |
|
| DeletePermissionGroupId | globally unique identifier |
None. |
|
| CanEdit | boolean |
None. |
|
| CanDelete | boolean |
None. |
|
| EnableDescription | boolean |
None. |
|
| SchemaId | globally unique identifier |
None. |
|
| BusinessAreaId | globally unique identifier |
None. |
|
| RequiresApproval | boolean |
None. |
|
| ApprovalGroupId | globally unique identifier |
None. |
|
| DistributionPriceListId | globally unique identifier |
None. |
|
| LeadProductId | globally unique identifier |
None. |
|
| DataFileFolderId | globally unique identifier |
None. |
|
| RenderEngineId | globally unique identifier |
None. |
|
| TemplateProperties | Collection of TemplatePropertyDto |
None. |
|
| Ext_TemplateId | integer |
None. |
|
| Ext_ArtworkId | integer |
None. |
|
| Ext_ResourceId | integer |
None. |
|
| PR_Key | string |
None. |
|
| RB_ArtWorkToken | string |
None. |
|
| IsProgrammaticTemplate | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "f62b3112-0feb-4411-81e5-d04343db0d65",
"TemplateCode": "b501b06c-768f-4cef-9894-3b7f9b163317",
"Name": "sample string 3",
"Description": "sample string 4",
"CreationDate": "2026-01-11T17:51:19.4145845Z",
"UserId": "62a3e897-c05d-4061-acce-5017c04a4904",
"TenantId": "59527a34-2111-4d7f-a6f0-3bb3c3f3b4d0",
"TenantName": "sample string 8",
"PublishDate": "2026-01-11T17:51:19.4145845Z",
"DeletedDate": "2026-01-11T17:51:19.4145845Z",
"Version": "sample string 9",
"WorkflowDefinitionId": "d21d4bb4-c5f8-4ed6-af40-c34c0203326c",
"WorkflowDefinitionCode": "9f6801af-4b2e-44c4-86b5-14779f98e8f0",
"ThumbnailFileData": "QEA=",
"ThumbnailPath": "sample string 12",
"Fonts": [
{
"Id": "4c034634-6f38-4ff7-817b-7813fc8d555c",
"Name": "sample string 2",
"CreationDate": "2026-01-11T17:51:19.4145845Z"
},
{
"Id": "4c034634-6f38-4ff7-817b-7813fc8d555c",
"Name": "sample string 2",
"CreationDate": "2026-01-11T17:51:19.4145845Z"
}
],
"Filters": [
{
"Id": "fc0713c7-fec4-4aa0-830a-b6ef0ddf7d20",
"TenantId": "cbb37056-b884-434f-9528-6cc23de3b10d",
"Name": "sample string 3",
"Values": [
"sample string 1",
"sample string 2"
]
},
{
"Id": "fc0713c7-fec4-4aa0-830a-b6ef0ddf7d20",
"TenantId": "cbb37056-b884-434f-9528-6cc23de3b10d",
"Name": "sample string 3",
"Values": [
"sample string 1",
"sample string 2"
]
}
],
"BudgetCodes": [
"sample string 1",
"sample string 2"
],
"PreviewKey": "sample string 13",
"Preview": {
"Key": "sample string 1",
"ProductPreviews": [
{
"ProductId": "8c46fcc0-2d8e-423f-8fea-dbb13c1e0782",
"NumberOfPages": 2
},
{
"ProductId": "8c46fcc0-2d8e-423f-8fea-dbb13c1e0782",
"NumberOfPages": 2
}
]
},
"FolderId": "9715b190-60e7-47f1-808a-588e4ac2c1d9",
"LeadTime": 1,
"EnableTimeSelection": true,
"EnableScheduling": true,
"AllowableSchedulingDays": 1,
"TemplateType": 1,
"ViewPermissionGroupId": "710179b1-fe75-45e6-b66b-7f2438698107",
"EditPermissionGroupId": "40871b65-ca04-4650-8602-4765b30d3f42",
"DeletePermissionGroupId": "7961c643-6282-491b-8843-b4e2fab618cf",
"CanEdit": true,
"CanDelete": true,
"EnableDescription": true,
"SchemaId": "a2474531-8de1-472b-8fa1-0a1f62fffa8b",
"BusinessAreaId": "7deeeee1-dc4d-4a4b-af87-0dbb0090017d",
"RequiresApproval": true,
"ApprovalGroupId": "fdcfe6f7-32bd-451c-8324-fb7fc51ed079",
"DistributionPriceListId": "5b7ed25b-ae44-433b-a8c2-2e191516d203",
"LeadProductId": "49fba0b5-3616-47c8-814f-a98fb6ec9106",
"DataFileFolderId": "1899a2fa-5724-45a1-8b38-b148bbf643b0",
"RenderEngineId": "58b16636-1800-4d6d-accb-e6232836fe58",
"TemplateProperties": [
{
"Id": "a25ec15d-af3e-4810-950c-2dcb19d2cedd",
"Name": "sample string 2",
"Value": "sample string 3",
"CreationDate": "2026-01-11T17:51:19.4145845Z",
"TemplateId": "23820ace-3568-4377-8c19-c6923ec1c619"
},
{
"Id": "a25ec15d-af3e-4810-950c-2dcb19d2cedd",
"Name": "sample string 2",
"Value": "sample string 3",
"CreationDate": "2026-01-11T17:51:19.4145845Z",
"TemplateId": "23820ace-3568-4377-8c19-c6923ec1c619"
}
],
"Ext_TemplateId": 1,
"Ext_ArtworkId": 1,
"Ext_ResourceId": 1,
"PR_Key": "sample string 21",
"RB_ArtWorkToken": "sample string 22",
"IsProgrammaticTemplate": true
}
application/xml, text/xml
Sample:
<TemplateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Template.Models">
<AllowableSchedulingDays>Sunday</AllowableSchedulingDays>
<ApprovalGroupId>fdcfe6f7-32bd-451c-8324-fb7fc51ed079</ApprovalGroupId>
<BudgetCodes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</BudgetCodes>
<BusinessAreaId>7deeeee1-dc4d-4a4b-af87-0dbb0090017d</BusinessAreaId>
<CanDelete>true</CanDelete>
<CanEdit>true</CanEdit>
<CreationDate>2026-01-11T17:51:19.4145845+00:00</CreationDate>
<DataFileFolderId>1899a2fa-5724-45a1-8b38-b148bbf643b0</DataFileFolderId>
<DeletePermissionGroupId>7961c643-6282-491b-8843-b4e2fab618cf</DeletePermissionGroupId>
<DeletedDate>2026-01-11T17:51:19.4145845+00:00</DeletedDate>
<Description>sample string 4</Description>
<DistributionPriceListId>5b7ed25b-ae44-433b-a8c2-2e191516d203</DistributionPriceListId>
<EditPermissionGroupId>40871b65-ca04-4650-8602-4765b30d3f42</EditPermissionGroupId>
<EnableDescription>true</EnableDescription>
<EnableScheduling>true</EnableScheduling>
<EnableTimeSelection>true</EnableTimeSelection>
<Ext_ArtworkId>1</Ext_ArtworkId>
<Ext_ResourceId>1</Ext_ResourceId>
<Ext_TemplateId>1</Ext_TemplateId>
<Filters>
<TemplatefilterCategoryDto>
<Id>fc0713c7-fec4-4aa0-830a-b6ef0ddf7d20</Id>
<Name>sample string 3</Name>
<TenantId>cbb37056-b884-434f-9528-6cc23de3b10d</TenantId>
<Values xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</Values>
</TemplatefilterCategoryDto>
<TemplatefilterCategoryDto>
<Id>fc0713c7-fec4-4aa0-830a-b6ef0ddf7d20</Id>
<Name>sample string 3</Name>
<TenantId>cbb37056-b884-434f-9528-6cc23de3b10d</TenantId>
<Values xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</Values>
</TemplatefilterCategoryDto>
</Filters>
<FolderId>9715b190-60e7-47f1-808a-588e4ac2c1d9</FolderId>
<Fonts>
<FontDto>
<CreationDate>2026-01-11T17:51:19.4145845+00:00</CreationDate>
<Id>4c034634-6f38-4ff7-817b-7813fc8d555c</Id>
<Name>sample string 2</Name>
</FontDto>
<FontDto>
<CreationDate>2026-01-11T17:51:19.4145845+00:00</CreationDate>
<Id>4c034634-6f38-4ff7-817b-7813fc8d555c</Id>
<Name>sample string 2</Name>
</FontDto>
</Fonts>
<Id>f62b3112-0feb-4411-81e5-d04343db0d65</Id>
<IsProgrammaticTemplate>true</IsProgrammaticTemplate>
<LeadProductId>49fba0b5-3616-47c8-814f-a98fb6ec9106</LeadProductId>
<LeadTime>1</LeadTime>
<Name>sample string 3</Name>
<PR_Key>sample string 21</PR_Key>
<Preview>
<Key>sample string 1</Key>
<ProductPreviews>
<ProductPreviewDto>
<NumberOfPages>2</NumberOfPages>
<ProductId>8c46fcc0-2d8e-423f-8fea-dbb13c1e0782</ProductId>
</ProductPreviewDto>
<ProductPreviewDto>
<NumberOfPages>2</NumberOfPages>
<ProductId>8c46fcc0-2d8e-423f-8fea-dbb13c1e0782</ProductId>
</ProductPreviewDto>
</ProductPreviews>
</Preview>
<PreviewKey>sample string 13</PreviewKey>
<PublishDate>2026-01-11T17:51:19.4145845+00:00</PublishDate>
<RB_ArtWorkToken>sample string 22</RB_ArtWorkToken>
<RenderEngineId>58b16636-1800-4d6d-accb-e6232836fe58</RenderEngineId>
<RequiresApproval>true</RequiresApproval>
<SchemaId>a2474531-8de1-472b-8fa1-0a1f62fffa8b</SchemaId>
<TemplateCode>b501b06c-768f-4cef-9894-3b7f9b163317</TemplateCode>
<TemplateProperties>
<TemplatePropertyDto>
<CreationDate>2026-01-11T17:51:19.4145845+00:00</CreationDate>
<Id>a25ec15d-af3e-4810-950c-2dcb19d2cedd</Id>
<Name>sample string 2</Name>
<TemplateId>23820ace-3568-4377-8c19-c6923ec1c619</TemplateId>
<Value>sample string 3</Value>
</TemplatePropertyDto>
<TemplatePropertyDto>
<CreationDate>2026-01-11T17:51:19.4145845+00:00</CreationDate>
<Id>a25ec15d-af3e-4810-950c-2dcb19d2cedd</Id>
<Name>sample string 2</Name>
<TemplateId>23820ace-3568-4377-8c19-c6923ec1c619</TemplateId>
<Value>sample string 3</Value>
</TemplatePropertyDto>
</TemplateProperties>
<TemplateType>DirectMail</TemplateType>
<TenantId>59527a34-2111-4d7f-a6f0-3bb3c3f3b4d0</TenantId>
<TenantName>sample string 8</TenantName>
<ThumbnailFileData>QEA=</ThumbnailFileData>
<ThumbnailPath>sample string 12</ThumbnailPath>
<UserId>62a3e897-c05d-4061-acce-5017c04a4904</UserId>
<Version>sample string 9</Version>
<ViewPermissionGroupId>710179b1-fe75-45e6-b66b-7f2438698107</ViewPermissionGroupId>
<WorkflowDefinitionCode>9f6801af-4b2e-44c4-86b5-14779f98e8f0</WorkflowDefinitionCode>
<WorkflowDefinitionId>d21d4bb4-c5f8-4ed6-af40-c34c0203326c</WorkflowDefinitionId>
</TemplateDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
None.