/orgs/{org}/hooks/{hook_id}Update an organization webhook
Updates an organization webhook, including its delivery URL, subscribed events, active state, and configuration. If you previously set a secret, provide the same secret or a new one; otherwise, the secret is removed. You must be an organization owner, and OAuth app tokens and personal access tokens (classic) need the admin:org_hook scope.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Optional webhook settings to update. If you previously set a secret, provide the same secret or a new one; omitting it removes the secret.
A 404 is returned when the organization or webhook cannot be found. A 422 is returned when validation fails or the endpoint has been spammed. The org path parameter identifies the organization, and the hook_id path parameter identifies the webhook; you must be an organization owner, and OAuth app tokens and personal access tokens (classic) need the admin:org_hook scope. Within config, url is required; if you previously set a secret, provide the same secret or a new one to avoid removing it.