GET http://webapi.mymarketing.co.il/api/automationtemplates?CategoryId={CategoryId}&TemplateTypeId={TemplateTypeId}
The automation templates are comprised of ‘System templates and ‘My Templates’. The system templates are predesigned and are based on several triggers that each one of them starts an automation journey. You can view the different automation templates, get the templates you want and save them to ‘My templates’. In the app you can edit ‘My Templates’ according to your preference, using the drag and drop editor, and you can also add steps. In the API you can edit the templates by adding steps and configuring the workflow.
Request Information
URI Parameters
Name
Description
Type
Additional information
categoryId
The id of the categories that you created in the web application.
integer
Required
templateTypeId
The id of the Campaign Templates types (ActiveCommerce only) Not Required if you dont use active commerce.
Body Parameters
None.
Response Information
Resource Description
Name
Description
Type
Additional information
Id
Template id
integer
IsBlank
Blank template with the default data
boolean
Name
Name of the template
string
TemplateURL
Template URL. For active commerce users only
string
IsSystem
Pre defined templates indicator. If it's Activetrail's than the value will be 1, if it's yours the value is 1.
boolean
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "IsBlank": true, "Name": "sample string 3", "TemplateURL": "sample string 4", "IsSystem": true }, { "Id": 1, "IsBlank": true, "Name": "sample string 3", "TemplateURL": "sample string 4", "IsSystem": true } ]
application/xml, text/xml
Sample:
<ArrayOfApiTemplateDisplayView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models"> <ApiTemplateDisplayView> <Id>1</Id> <IsBlank>true</IsBlank> <IsSystem>true</IsSystem> <Name>sample string 3</Name> <TemplateURL>sample string 4</TemplateURL> </ApiTemplateDisplayView> <ApiTemplateDisplayView> <Id>1</Id> <IsBlank>true</IsBlank> <IsSystem>true</IsSystem> <Name>sample string 3</Name> <TemplateURL>sample string 4</TemplateURL> </ApiTemplateDisplayView> </ArrayOfApiTemplateDisplayView>