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"]
}
Webhooks
Update webhook endpoint
Modify an existing Luma webhook endpoint using luma.webhooks.update(), changing the delivery URL or its subscribed event types by ID.
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
string
required
Webhook endpoint
api_id from webhooks.create() or webhooks.list().WebhookUpdateParams
required
Fields to update. See the official Luma API docs for available fields.
Test it
Use a webhook ID from your account — runwebhooks.list() to find one:
const updated = await luma.webhooks.update("whk-abc123", {
event_types: ["guest.updated", "guest.registered"],
});
console.log(updated.event_types);