{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Create a hook that posts payloads in JSON format.\n\nYou must be an organization owner to use this endpoint.\n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or\nedit webhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.","properties":{"path":{"type":"object","properties":{"org":{"type":"string","description":"The organization name. The name is not case sensitive."}},"required":["org"],"additionalProperties":false},"body":{"type":"object","properties":{"name":{"type":"string","description":"Must be passed as \"web\"."},"config":{"type":"object","description":"Key/value pairs to provide settings for this webhook.","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"},"username":{"type":"string","examples":["\"kdaigle\""]},"password":{"type":"string","examples":["\"password\""]}},"required":["url"]},"events":{"type":"array","description":"Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. Set to `[\"*\"]` to receive all possible events.","default":["push"],"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}},"required":["name","config"],"examples":[{"name":"web","active":true,"events":["push","pull_request"],"config":{"url":"http://example.com/webhook","content_type":"json"}}]}},"required":["path","body"],"additionalProperties":false,"definitions":{"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":"Create an organization webhook","id":"github.orgs.create-webhook","example":{"path":{"org":"example"},"body":{"name":"web","active":true,"events":["push","pull_request"],"config":{"url":"http://example.com/webhook","content_type":"json"}}},"maxRequests":1,"summary":false}}