> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

# webhook_endpoints_update

> Change a webhook endpoint, or pause it with enabled=false. Omitted fields are left alone; the list fields replace rather than merge, so sending one event name leaves the endpoint subscribed to that event only. Pausing keeps the signing secret, deleting does not.

<div className="tool-route"><span className="tool-row-method" data-method="PATCH">PATCH</span><code>{"https://public-api.granola.ai/v1/webhook-endpoints/{webhookEndpointId}"}</code></div>

```python granola_webhook_endpoints_update.py theme={null}
from charter.packs import granola

result = await granola.webhook_endpoints_update.ainvoke({"webhookEndpointId": ...})
```

## Path parameters

<div className="reference-table">
  | Field                                                                     | Type     | Description                                                                                                         |
  | ------------------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------- |
  | `webhookEndpointId` <span className="required" title="required">\*</span> | `string` | The ID of the webhook endpoint <span className="field-constraints">matches `^whe_[a-zA-Z0-9]&#123;14&#125;$`</span> |
</div>

## Body

<div className="reference-table">
  | Field       | Type                                                                            | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
  | ----------- | ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `url`       | `string`                                                                        | The publicly reachable HTTPS URL to deliver events to. Omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
  | `scopes`    | [WebhookScope](/charter/charter/packs/granola/webhooks/objects#webhookscope)\[]         | Which notes to receive events for; replaces the current scopes. `personal` covers notes you own, notes shared directly with you, and notes in private folders shared with you. `public` covers notes visible to everyone in the workspace. Pass both for both sets of notes. Workspace admins can disable scopes for non-admin members in the workspace's API settings. A workspace-managed endpoint's scope is fixed: only `["workspace"]` is accepted. Omit to leave unchanged. <span className="field-constraints">min 1 items</span> |
  | `events`    | [WebhookEventName](/charter/charter/packs/granola/webhooks/objects#webhookeventname)\[] | Event names to subscribe to; replaces the current subscriptions. Omit to leave unchanged. <span className="field-constraints">min 1 items</span>                                                                                                                                                                                                                                                                                                                                                                                         |
  | `folderIds` | `string`\[]                                                                     | Restrict delivery to notes in these folders or any of their subfolders; replaces the current folder filter. Accepts folder IDs returned by `GET /v1/folders`. Pass an empty array to remove the filter. Omit to leave unchanged. <span className="field-constraints">max 100 items</span>                                                                                                                                                                                                                                                |
  | `enabled`   | `boolean`                                                                       | Pause (`false`) or resume (`true`) event deliveries. A paused endpoint keeps its configuration and signing secret; events that occur while paused are not delivered later. Omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                      |
</div>
