Template REST API
The Template REST API enables you to perform CRUD operations on web templates and decision templates. Offer templates are not available in Sitecore Personalize REST APIs.
Use the following attributes for templates:
Attribute |
Type |
Description |
Example(s) |
---|---|---|---|
|
string |
The name of the template. |
|
|
string |
The unique ID of the template. Only lowercase alphanumeric characters and underscores are allowed. |
|
|
string enum (uppercase) |
The type of the template. |
Must be one of:
|
|
string enum (uppercase) |
The current status of the template. |
Must be one of:
|
|
string |
The description of the connection. |
|
|
boolean |
Determines whether to render a preview of the web template in the Sitecore Personalize app. Only set this to Do not set this to |
|
|
boolean |
Determines whether this is a default template. When you create a template, you must set this value to |
|
|
boolean |
Determines whether this is a custom template. When you create a template, you must set this value to |
|
optional |
JSON array of JSON objects |
Custom HTML, CSS, JavaScript, and FreeMarker codes that define the template. The codes can contain template parameters, for example, |
N/A |
|
boolean |
The archive status of the flow definition. |
|
|
JSON array of JSON objects |
An array of revisions of the flow definition. |
N/A |
|
integer |
The sequential number of the template revision. |
|