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"
}
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.11.0-canary.1
Contact us if you’re interested in testing this feature.
Provide at least one of name, status, or both steps and connections. When updating the workflow graph, steps and connections must be sent together.

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
Step[]
The steps that compose the automation graph. Must be provided together with connections. See Step Properties for full object definition.
connections
Connection[]
The connections between steps in the automation graph. Must be provided together with steps. See Connection Properties for full object definition.
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"
}