Skip to content

Latest commit

 

History

History
64 lines (46 loc) · 1.79 KB

updateWebhookConfigForOrg.md

File metadata and controls

64 lines (46 loc) · 1.79 KB
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

Update a webhook configuration for an organization

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,
});

Parameters

name required description
orgyes

The organization name. The name is not case sensitive.

hook_idyes

The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.

urlno

The URL to which the payloads will be delivered.

content_typeno

The media type used to serialize the payloads. Supported values include json and form. The default is form.

secretno

If provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers.

insecure_sslno

See also: GitHub Developer Guide documentation.