Update an organization webhook
Updates a webhook configured in an organization. When you update a webhook, the `secret` will be overwritten. If you previously had a `secret` set, you must provide the same `secret` or set a new `secret` or the secret will be removed. If you are only updating individual webhook `config` properties, use "[Update a webhook configuration for an organization](/rest/reference/orgs#update-a-webhook-configuration-for-an-organization)."
/orgs/{org}/hooks/{hook_id}- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- org stringrequired
- hook_id integerrequired
Body Params
optionalDetermines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.
config objectoptionalKey/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/[email protected]/rest/reference/orgs#update-hook-config-params).
Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/[email protected]/rest/reference/orgs#update-hook-config-params).
The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.
Example: "json"
If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/[email protected]/webhooks/event-payloads/#delivery-headers).
Example: "********"
The URL to which the payloads will be delivered.
Example: https://example.com/webhook
Determines what [events](https://docs.github.com/[email protected]/webhooks/event-payloads) the hook is triggered for.
Example: "web"
Responses
Response
Example: true
config objectrequired
Example: "form"
Example: "0"
Example: "********"
Example: "http://example.com/2"
Example: 2011-09-06T17:26:27Z
[
"push",
"pull_request"
]Example: 1
Example: web
Example: https://api.github.com/orgs/octocat/hooks/1/pings
Example: 2011-09-06T20:39:23Z
Example: https://api.github.com/orgs/octocat/hooks/1
Resource not found
Validation failed