> ## Documentation Index
> Fetch the complete documentation index at: https://alhwyn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Update webhook endpoint

> Modify an existing Luma webhook endpoint using luma.webhooks.update(), changing the delivery URL or its subscribed event types by ID.

<Badge color="purple">SDK</Badge> `luma.webhooks.update(id: string, body: WebhookUpdateParams): Promise<Webhook>`

Updates an existing webhook endpoint.

<RequestExample>
  ```typescript Example theme={null}
  await luma.webhooks.update("whk-abc123", {
    url: "https://myapp.com/api/luma-webhook-v2",
  });
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "api_id": "whk-abc123",
    "url": "https://myapp.com/api/luma-webhook-v2",
    "event_types": ["guest.updated", "guest.registered"]
  }
  ```
</ResponseExample>

### Parameters

<ParamField path="id" type="string" required>
  Webhook endpoint `api_id` from `webhooks.create()` or `webhooks.list()`.
</ParamField>

<ParamField path="body" type="WebhookUpdateParams" required>
  Fields to update. See the [official Luma API docs](https://docs.luma.com) for available fields.
</ParamField>

### Test it

Use a webhook ID from your account — run `webhooks.list()` to find one:

```typescript theme={null}
const updated = await luma.webhooks.update("whk-abc123", {
  event_types: ["guest.updated", "guest.registered"],
});
console.log(updated.event_types);
```
