Docs
Templates

Update Template

Change a template. Republish to use the new version.

PATCH/templates/{template_id}

Path Parameters

template_idstringrequired
Template ID or alias.

Body Parameters

subjectstring
New subject.
htmlstring
New HTML.
import { Resend } from 'resend';

const client = new Resend('pw_xxxxxxxxx');

const { data, error } = await client.templates.update('{template_id}', { subject: 'Hey {{{NAME}}}' });
Try itPATCH/templates/%7Btemplate_id%7D

No key yet? Create one in the dashboard.