PATCH
granola_webhook_endpoints_update.py
from charter.packs import granola
result = await granola.webhook_endpoints_update.ainvoke({"webhookEndpointId": ...})
Path parameters
| Field | Type | Description |
|---|---|---|
webhookEndpointId * | string | The ID of the webhook endpoint matches ^whe_[a-zA-Z0-9]{14}$ |
Body
| Field | Type | Description |
|---|---|---|
url | string | The publicly reachable HTTPS URL to deliver events to. Omit to leave unchanged. |
scopes | 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. min 1 items |
events | WebhookEventName[] | Event names to subscribe to; replaces the current subscriptions. Omit to leave unchanged. min 1 items |
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. max 100 items |
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. |