POST api/Templates
Creates a template.
Request Information
URI Parameters
None.
Body Parameters
The template model to create 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": "0eb45f49-d031-41e2-a465-572b095272d6",
"TemplateCode": "d4dee599-e4da-4979-a2a1-2cba90608305",
"Name": "sample string 3",
"Description": "sample string 4",
"CreationDate": "2025-12-11T17:28:09.9279825Z",
"UserId": "4d6a55ba-6f00-4349-8567-3a69a821f7ac",
"TenantId": "2687013c-0320-4a0f-b74e-aec74f414389",
"TenantName": "sample string 8",
"PublishDate": "2025-12-11T17:28:09.9279825Z",
"DeletedDate": "2025-12-11T17:28:09.9279825Z",
"Version": "sample string 9",
"WorkflowDefinitionId": "9035f0dd-0f77-42bc-9160-9b134be3a83b",
"WorkflowDefinitionCode": "fed9e1b7-e924-4cf3-910f-a548dbfb2fca",
"ThumbnailFileData": "QEA=",
"ThumbnailPath": "sample string 12",
"Fonts": [
{
"Id": "710965d8-fd83-4e5e-98b3-a65d75a1e424",
"Name": "sample string 2",
"CreationDate": "2025-12-11T17:28:09.9279825Z"
},
{
"Id": "710965d8-fd83-4e5e-98b3-a65d75a1e424",
"Name": "sample string 2",
"CreationDate": "2025-12-11T17:28:09.9279825Z"
}
],
"Filters": [
{
"Id": "df9a5db3-4eb2-4279-b4a4-94a40e440e1d",
"TenantId": "57f67968-6ea2-4603-97eb-d6beaad2be0d",
"Name": "sample string 3",
"Values": [
"sample string 1",
"sample string 2"
]
},
{
"Id": "df9a5db3-4eb2-4279-b4a4-94a40e440e1d",
"TenantId": "57f67968-6ea2-4603-97eb-d6beaad2be0d",
"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": "4ebbd7c2-c19c-490b-96cc-b7165894bf9c",
"NumberOfPages": 2
},
{
"ProductId": "4ebbd7c2-c19c-490b-96cc-b7165894bf9c",
"NumberOfPages": 2
}
]
},
"FolderId": "c5858733-6620-43a6-ba63-6327463b71a6",
"LeadTime": 1,
"EnableTimeSelection": true,
"EnableScheduling": true,
"AllowableSchedulingDays": 1,
"TemplateType": 1,
"ViewPermissionGroupId": "b8f33a6a-4e95-4298-ad35-2bb39ee7c2ad",
"EditPermissionGroupId": "6750737a-5533-4e90-9007-3d64f5757232",
"DeletePermissionGroupId": "75124fc8-57b0-4e95-a26c-ae39389db8cb",
"CanEdit": true,
"CanDelete": true,
"EnableDescription": true,
"SchemaId": "985f44e3-3ae2-40b0-a3ea-350bf5a0e9d6",
"BusinessAreaId": "aaa88b3a-a1b7-4de8-97b4-6614886497af",
"RequiresApproval": true,
"ApprovalGroupId": "1d07e003-7fcd-4ff4-ba9d-9604dd7594c2",
"DistributionPriceListId": "88131443-76d7-481a-8f8b-c026e787ce89",
"LeadProductId": "ff1fc65c-021f-4b8e-ad13-49ab65f03029",
"DataFileFolderId": "42a194a7-4924-4636-9daf-6df7acd73eb8",
"RenderEngineId": "f2008502-d870-403e-931b-c4e5a15608d0",
"TemplateProperties": [
{
"Id": "25271228-b675-43b9-a08c-7a1c1eabf446",
"Name": "sample string 2",
"Value": "sample string 3",
"CreationDate": "2025-12-11T17:28:09.9279825Z",
"TemplateId": "cb333076-f652-4a98-82e4-05001fd2264e"
},
{
"Id": "25271228-b675-43b9-a08c-7a1c1eabf446",
"Name": "sample string 2",
"Value": "sample string 3",
"CreationDate": "2025-12-11T17:28:09.9279825Z",
"TemplateId": "cb333076-f652-4a98-82e4-05001fd2264e"
}
],
"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>1d07e003-7fcd-4ff4-ba9d-9604dd7594c2</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>aaa88b3a-a1b7-4de8-97b4-6614886497af</BusinessAreaId>
<CanDelete>true</CanDelete>
<CanEdit>true</CanEdit>
<CreationDate>2025-12-11T17:28:09.9279825+00:00</CreationDate>
<DataFileFolderId>42a194a7-4924-4636-9daf-6df7acd73eb8</DataFileFolderId>
<DeletePermissionGroupId>75124fc8-57b0-4e95-a26c-ae39389db8cb</DeletePermissionGroupId>
<DeletedDate>2025-12-11T17:28:09.9279825+00:00</DeletedDate>
<Description>sample string 4</Description>
<DistributionPriceListId>88131443-76d7-481a-8f8b-c026e787ce89</DistributionPriceListId>
<EditPermissionGroupId>6750737a-5533-4e90-9007-3d64f5757232</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>df9a5db3-4eb2-4279-b4a4-94a40e440e1d</Id>
<Name>sample string 3</Name>
<TenantId>57f67968-6ea2-4603-97eb-d6beaad2be0d</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>df9a5db3-4eb2-4279-b4a4-94a40e440e1d</Id>
<Name>sample string 3</Name>
<TenantId>57f67968-6ea2-4603-97eb-d6beaad2be0d</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>c5858733-6620-43a6-ba63-6327463b71a6</FolderId>
<Fonts>
<FontDto>
<CreationDate>2025-12-11T17:28:09.9279825+00:00</CreationDate>
<Id>710965d8-fd83-4e5e-98b3-a65d75a1e424</Id>
<Name>sample string 2</Name>
</FontDto>
<FontDto>
<CreationDate>2025-12-11T17:28:09.9279825+00:00</CreationDate>
<Id>710965d8-fd83-4e5e-98b3-a65d75a1e424</Id>
<Name>sample string 2</Name>
</FontDto>
</Fonts>
<Id>0eb45f49-d031-41e2-a465-572b095272d6</Id>
<IsProgrammaticTemplate>true</IsProgrammaticTemplate>
<LeadProductId>ff1fc65c-021f-4b8e-ad13-49ab65f03029</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>4ebbd7c2-c19c-490b-96cc-b7165894bf9c</ProductId>
</ProductPreviewDto>
<ProductPreviewDto>
<NumberOfPages>2</NumberOfPages>
<ProductId>4ebbd7c2-c19c-490b-96cc-b7165894bf9c</ProductId>
</ProductPreviewDto>
</ProductPreviews>
</Preview>
<PreviewKey>sample string 13</PreviewKey>
<PublishDate>2025-12-11T17:28:09.9279825+00:00</PublishDate>
<RB_ArtWorkToken>sample string 22</RB_ArtWorkToken>
<RenderEngineId>f2008502-d870-403e-931b-c4e5a15608d0</RenderEngineId>
<RequiresApproval>true</RequiresApproval>
<SchemaId>985f44e3-3ae2-40b0-a3ea-350bf5a0e9d6</SchemaId>
<TemplateCode>d4dee599-e4da-4979-a2a1-2cba90608305</TemplateCode>
<TemplateProperties>
<TemplatePropertyDto>
<CreationDate>2025-12-11T17:28:09.9279825+00:00</CreationDate>
<Id>25271228-b675-43b9-a08c-7a1c1eabf446</Id>
<Name>sample string 2</Name>
<TemplateId>cb333076-f652-4a98-82e4-05001fd2264e</TemplateId>
<Value>sample string 3</Value>
</TemplatePropertyDto>
<TemplatePropertyDto>
<CreationDate>2025-12-11T17:28:09.9279825+00:00</CreationDate>
<Id>25271228-b675-43b9-a08c-7a1c1eabf446</Id>
<Name>sample string 2</Name>
<TemplateId>cb333076-f652-4a98-82e4-05001fd2264e</TemplateId>
<Value>sample string 3</Value>
</TemplatePropertyDto>
</TemplateProperties>
<TemplateType>DirectMail</TemplateType>
<TenantId>2687013c-0320-4a0f-b74e-aec74f414389</TenantId>
<TenantName>sample string 8</TenantName>
<ThumbnailFileData>QEA=</ThumbnailFileData>
<ThumbnailPath>sample string 12</ThumbnailPath>
<UserId>4d6a55ba-6f00-4349-8567-3a69a821f7ac</UserId>
<Version>sample string 9</Version>
<ViewPermissionGroupId>b8f33a6a-4e95-4298-ad35-2bb39ee7c2ad</ViewPermissionGroupId>
<WorkflowDefinitionCode>fed9e1b7-e924-4cf3-910f-a548dbfb2fca</WorkflowDefinitionCode>
<WorkflowDefinitionId>9035f0dd-0f77-42bc-9160-9b134be3a83b</WorkflowDefinitionId>
</TemplateDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
None.