Skip to main content
PATCH
/
automations
/
:automation_id
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.automations.update(
  'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
  { status: 'enabled' },
);
{
  "object": "automation",
  "id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
  "status": "enabled"
}
Automations are currently in private alpha and only available to a limited number of users. APIs might change before GA.To use the methods on this page, you must upgrade your Resend SDK:
npm install resend@6.10.0-preview-workflows.3
Contact us if you’re interested in testing this feature.

Path Parameters

Body Parameters

name
string
The name of the automation.
status
string
The status of the automation. Possible values are enabled or disabled.
steps
object[]
The steps that compose the automation graph. Must be provided together with edges.
edges
object[]
The edges connecting steps in the automation graph. Must be provided together with steps.
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.automations.update(
  'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
  { status: 'enabled' },
);
{
  "object": "automation",
  "id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
  "status": "enabled"
}