Skip to main content
PATCH
https://api.resend.com
/
events
/
:identifier
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.events.update('user.created', {
  schema: {
    plan: 'string',
    trial: 'boolean',
  },
});
{
  "object": "event",
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
Workflows 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.0
Contact us if you’re interested in testing this feature.

Path Parameters

Body Parameters

schema
object
required
The updated schema definition for the event payload. Must be an object with flat key/type pairs. Supported types: string, number, boolean, date. Set to null to remove the schema.
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.events.update('user.created', {
  schema: {
    plan: 'string',
    trial: 'boolean',
  },
});
{
  "object": "event",
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}