import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.workflows.update(
'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
{
status: 'enabled',
},
);
{
"object": "workflow",
"id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
"status": "enabled"
}
Update an existing workflow.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.workflows.update(
'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
{
status: 'enabled',
},
);
{
"object": "workflow",
"id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
"status": "enabled"
}
npm install resend@6.10.0-canary.0
enabled or disabled.import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.workflows.update(
'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
{
status: 'enabled',
},
);
{
"object": "workflow",
"id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
"status": "enabled"
}
Was this page helpful?