Skip to main content

webhook_config

Overview

Namewebhook_config
TypeResource
Idgithub.repos.webhook_config

Fields

NameDatatypeDescription
content_typestringThe media type used to serialize the payloads. Supported values include json and form. The default is form.
insecure_ssl``
secretstringIf provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers.
urlstringThe URL to which the payloads will be delivered.

Methods

NameAccessible byRequired ParamsDescription
get_webhook_config_for_repoSELECThook_id, owner, repoReturns the webhook configuration for a repository. To get more information about the webhook, including the active state and events, use "Get a repository webhook."

Access tokens must have the read:repo_hook or repo scope, and GitHub Apps must have the repository_hooks:read permission.
update_webhook_config_for_repoEXEChook_id, owner, repoUpdates the webhook configuration for a repository. To update more information about the webhook, including the active state and events, use "Update a repository webhook."

Access tokens must have the write:repo_hook or repo scope, and GitHub Apps must have the repository_hooks:write permission.