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": "ec851fa7-1bb5-41dc-9073-75fd64fa2a7b",
"TemplateCode": "4237cf36-c0db-4609-be46-87f0e4ae5bd2",
"WorkflowDefinitionCode": "9d89c145-d3f2-46ca-8a99-a003d8f7ce0e",
"IsDeleted": true,
"IsPublished": true,
"IsExpired": true,
"TemplateType": 1,
"FolderId": "46fceebb-02f8-42ed-b47e-5dfdc5de57ac",
"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>46fceebb-02f8-42ed-b47e-5dfdc5de57ac</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>4237cf36-c0db-4609-be46-87f0e4ae5bd2</TemplateCode>
<TemplateType>DirectMail</TemplateType>
<TenantId>ec851fa7-1bb5-41dc-9073-75fd64fa2a7b</TenantId>
<WorkflowDefinitionCode>9d89c145-d3f2-46ca-8a99-a003d8f7ce0e</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.