url or events must be provided. When events is sent, it replaces the full set of subscribed event types — it is not additive.
Request body fields
| Field | Type | Required | Description |
|---|---|---|---|
url | string | At least one of url or events | New HTTPS destination URL for webhook POST requests. Max 2048 characters. |
events | array of strings | At least one of url or events | Replaces all currently subscribed event types. See supported event types. |
Example: change URL only
Example: replace subscribed events
Error responses
400— empty patch body (no fields provided).404— subscription not found or not owned by the account.409— subscription is already archived; archived subscriptions cannot be updated.422— unsupported event type, oreventsarray was empty when theeventskey was sent.
webhooks:write.