POST api/templates/select
Retrieves a list of templates that match the given criteria.
Request Information
URI Parameters
None.
Body Parameters
The criteria model to filter templates by.
TemplatesFilterCriteria| Name | Description | Type | Additional information |
|---|---|---|---|
| TenantId | globally unique identifier |
None. |
|
| TemplateCode | globally unique identifier |
None. |
|
| WorkflowDefinitionCode | globally unique identifier |
None. |
|
| IsDeleted | boolean |
None. |
|
| IsPublished | boolean |
None. |
|
| IsExpired | boolean |
None. |
|
| TemplateType | TemplateTypeDto |
None. |
|
| FolderId | globally unique identifier |
None. |
|
| BudgetCodes | Collection of string |
None. |
|
| HasAssociatedSchema | boolean |
None. |
|
| ProductCodes | Collection of string |
None. |
|
| IsProgrammatic | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"TenantId": "03fc984c-933c-4217-8fdf-95607a32d178",
"TemplateCode": "4d7e9049-a3de-45db-952d-b31b486e1a96",
"WorkflowDefinitionCode": "b10fe78a-a117-4d6c-9d68-36e9ce1f5049",
"IsDeleted": true,
"IsPublished": true,
"IsExpired": true,
"TemplateType": 1,
"FolderId": "426fee3e-1a47-425a-9b80-94cb644b2d9a",
"BudgetCodes": [
"sample string 1",
"sample string 2"
],
"HasAssociatedSchema": true,
"ProductCodes": [
"sample string 1",
"sample string 2"
],
"IsProgrammatic": true
}
application/xml, text/xml
Sample:
<TemplatesFilterCriteria xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Template.Models.FilterCriteria">
<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>
<FolderId>426fee3e-1a47-425a-9b80-94cb644b2d9a</FolderId>
<HasAssociatedSchema>true</HasAssociatedSchema>
<IsDeleted>true</IsDeleted>
<IsExpired>true</IsExpired>
<IsProgrammatic>true</IsProgrammatic>
<IsPublished>true</IsPublished>
<ProductCodes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</ProductCodes>
<TemplateCode>4d7e9049-a3de-45db-952d-b31b486e1a96</TemplateCode>
<TemplateType>DirectMail</TemplateType>
<TenantId>03fc984c-933c-4217-8fdf-95607a32d178</TenantId>
<WorkflowDefinitionCode>b10fe78a-a117-4d6c-9d68-36e9ce1f5049</WorkflowDefinitionCode>
</TemplatesFilterCriteria>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.