name | example | route | scope | type |
---|---|---|---|---|
Update a webhook configuration for an organization |
octokit.rest.orgs.updateWebhookConfigForOrg({ org, hook_id }) |
PATCH /orgs/{org}/hooks/{hook_id}/config |
orgs |
API method |
Updates the webhook configuration for an organization. To update more information about the webhook, including the active
state and events
, use "Update an organization webhook ."
OAuth app tokens and personal access tokens (classic) need the admin:org_hook
scope to use this endpoint.
octokit.rest.orgs.updateWebhookConfigForOrg({
org,
hook_id,
});
name | required | description |
---|---|---|
org | yes |
The organization name. The name is not case sensitive. |
hook_id | yes |
The unique identifier of the hook. You can find this value in the |
url | no |
The URL to which the payloads will be delivered. |
content_type | no |
The media type used to serialize the payloads. Supported values include |
secret | no |
If provided, the |
insecure_ssl | no |
See also: GitHub Developer Guide documentation.