Skip to main content
await luma.webhooks.update("whk-abc123", {
  url: "https://myapp.com/api/luma-webhook-v2",
});
{
  "api_id": "whk-abc123",
  "url": "https://myapp.com/api/luma-webhook-v2",
  "event_types": ["guest.updated", "guest.registered"]
}
SDK luma.webhooks.update(id: string, body: WebhookUpdateParams): Promise<Webhook> Updates an existing webhook endpoint.
await luma.webhooks.update("whk-abc123", {
  url: "https://myapp.com/api/luma-webhook-v2",
});
{
  "api_id": "whk-abc123",
  "url": "https://myapp.com/api/luma-webhook-v2",
  "event_types": ["guest.updated", "guest.registered"]
}

Parameters

id
string
required
Webhook endpoint api_id from webhooks.create() or webhooks.list().
body
WebhookUpdateParams
required
Fields to update. See the official Luma API docs for available fields.

Test it

Use a webhook ID from your account — run webhooks.list() to find one:
const updated = await luma.webhooks.update("whk-abc123", {
  event_types: ["guest.updated", "guest.registered"],
});
console.log(updated.event_types);