We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b7e2c2 commit 3ebee7eCopy full SHA for 3ebee7e
examples/templates/everything.ts
@@ -24,11 +24,11 @@ async function templatesFlow() {
24
console.log("All templates:", allTemplates);
25
26
// Get a specific template
27
- const template = await client.templates.get(allTemplates[0].id);
+ const template = await client.templates.get(newTemplate.id);
28
console.log("Template details:", template);
29
30
// Update the template
31
- const updatedTemplate = await client.templates.update(template.id, {
+ const updatedTemplate = await client.templates.update(newTemplate.id, {
32
name: "Updated Welcome Email",
33
subject: "Welcome to Our Amazing Service!",
34
body_html: "<h1>Welcome!</h1><p>Thank you for joining our amazing service.</p>"
0 commit comments