| Name |
Type |
Description |
Notes |
| id |
String |
Unique template identifier with template_ prefix |
[optional] |
| name |
String |
Name of the template |
[optional] |
| subject |
String |
Email subject line (if applicable) |
[optional] |
| html_code |
String |
HTML content of the template |
[optional] |
| template_code |
String |
Template code for visual editors (JSON structure) |
[optional] |
| type |
Integer |
Template type. Values: - `0` - Email template - `1` - Other types |
[optional] |
| thumbnail |
String |
URL to template thumbnail image |
[optional] |
| editor_type |
Integer |
Editor type used to create the template. Values: - `0` - PlainText - `1` - DragDrop - `2` - SendxEditor |
[optional] |
| created |
Time |
Template creation timestamp |
[optional] |
| updated |
Time |
Template last update timestamp |
[optional] |
require 'sendx-ruby-sdk'
instance = SendX::RestRTemplate.new(
id: template_abc123def456ghi789,
name: Welcome Email Template,
subject: Welcome to our platform!,
html_code: <html><body><h1>Welcome!</h1></body></html>,
template_code: {"blocks":[{"type":"text","content":"Welcome!"}]},
type: 0,
thumbnail: https://cdn.sendx.io/templates/thumb_abc123.png,
editor_type: 1,
created: 2024-01-10T14:20:00Z,
updated: 2024-01-15T09:15:00Z
)