Email
Update Email
Email
Update Email
Update a scheduled email.
import { Resend } from 'resend';
const resend = new Resend('re_123456789');
const oneMinuteFromNow = new Date(Date.now() + 1000 * 60).toISOString();
resend.emails.update({
id: '49a3999c-0ce1-4ea6-ab68-afcd6dc2e794',
scheduledAt: oneMinuteFromNow,
});
{
"object": "email",
"id": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794"
}
Path Parameters
The Email ID.
Body Parameters
Schedule email to be sent later. The date should be in ISO 8601 format (e.g: 2024-08-05T11:52:01.858Z).
import { Resend } from 'resend';
const resend = new Resend('re_123456789');
const oneMinuteFromNow = new Date(Date.now() + 1000 * 60).toISOString();
resend.emails.update({
id: '49a3999c-0ce1-4ea6-ab68-afcd6dc2e794',
scheduledAt: oneMinuteFromNow,
});
{
"object": "email",
"id": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794"
}
Was this page helpful?
import { Resend } from 'resend';
const resend = new Resend('re_123456789');
const oneMinuteFromNow = new Date(Date.now() + 1000 * 60).toISOString();
resend.emails.update({
id: '49a3999c-0ce1-4ea6-ab68-afcd6dc2e794',
scheduledAt: oneMinuteFromNow,
});
{
"object": "email",
"id": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794"
}