import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.automations.stop(
'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
);
{
"object": "automation",
"id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
"status": "disabled"
}
Stop a running automation.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.automations.stop(
'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
);
{
"object": "automation",
"id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
"status": "disabled"
}
npm install resend@6.10.0-preview-workflows.3
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.automations.stop(
'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
);
{
"object": "automation",
"id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
"status": "disabled"
}
Was this page helpful?