{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Updates a webhook configured in a repository. 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 a repository](/rest/webhooks/repo-config#update-a-webhook-configuration-for-a-repository).\"","properties":{"path":{"type":"object","properties":{"owner":{"type":"string","description":"The account owner of the repository. The name is not case sensitive."},"repo":{"type":"string","description":"The name of the repository without the `.git` extension. The name is not case sensitive."},"hook_id":{"type":"integer","description":"The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery."}},"required":["owner","repo","hook_id"],"additionalProperties":false},"body":{"type":"object","properties":{"config":{"$ref":"#/definitions/webhook-config"},"events":{"type":"array","description":"Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.","default":["push"],"items":{"type":"string"}},"add_events":{"type":"array","description":"Determines a list of events to be added to the list of events that the Hook triggers for.","items":{"type":"string"}},"remove_events":{"type":"array","description":"Determines a list of events to be removed from the list of events that the Hook triggers for.","items":{"type":"string"}},"active":{"type":"boolean","description":"Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.","default":true}},"examples":[{"active":true,"add_events":["pull_request"]}]}},"required":["path","body"],"additionalProperties":false,"definitions":{"webhook-config":{"title":"Webhook Configuration","description":"Configuration object of the webhook","type":"object","properties":{"url":{"$ref":"#/definitions/webhook-config-url"},"content_type":{"$ref":"#/definitions/webhook-config-content-type"},"secret":{"$ref":"#/definitions/webhook-config-secret"},"insecure_ssl":{"$ref":"#/definitions/webhook-config-insecure-ssl"}}},"webhook-config-url":{"type":"string","description":"The URL to which the payloads will be delivered.","format":"uri","examples":["https://example.com/webhook"]},"webhook-config-content-type":{"type":"string","description":"The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.","examples":["\"json\""]},"webhook-config-secret":{"type":"string","description":"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/webhooks/event-payloads/#delivery-headers).","examples":["\"********\""]},"webhook-config-insecure-ssl":{"oneOf":[{"type":"string","description":"Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**","examples":["\"0\""]},{"type":"number"}]}}},"name":"Update a repository webhook","id":"github.repos.update-webhook","example":{"path":{"owner":"octocat","repo":"hello-world","hook_id":1},"body":{"active":true,"add_events":["pull_request"]}},"maxRequests":1,"summary":false}}