Skip to content

Latest commit

 

History

History
67 lines (48 loc) · 1.96 KB

updateWebhookConfigForOrg.md

File metadata and controls

67 lines (48 loc) · 1.96 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 ."

You must be an organization owner to use this endpoint.

OAuth app tokens and personal access tokens (classic) need admin:org_hook scope. OAuth apps cannot list, view, or edit webhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.

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.