List organization webhooks
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
Response
application/json
Response
Response
Org Hook
Example:1
Example:https://api.github.com/orgs/octocat/hooks/1
Example:https://api.github.com/orgs/octocat/hooks/1/pings
Example:web
Example:["push","pull_request"]
Example:true
Show Child Parameters
Example:2011-09-06T20:39:23Z
Example:2011-09-06T17:26:27Z
Path Parameters
Query Parameters
Create an organization webhook
Here’s how you can create a hook that posts payloads in JSON format:
Path Parameters
Body
application/json
Body
Must be passed as “web”.
Key/value pairs to provide settings for this webhook. These are defined below.
Show Child Parameters
Determines if notifications are sent when the webhook is triggered. Set to true to send notifications.
Default:true
Response
application/json
Response
Response
Org Hook
Org Hook
Example:1
Example:https://api.github.com/orgs/octocat/hooks/1
Example:https://api.github.com/orgs/octocat/hooks/1/pings
Example:web
Example:["push","pull_request"]
Example:true
Show Child Parameters
Example:2011-09-06T20:39:23Z
Example:2011-09-06T17:26:27Z
Path Parameters
Body
Get an organization webhook
Returns a webhook configured in an organization. To get only the webhook config properties, see “Get a webhook configuration for an organization.”
Path Parameters
Response
application/json
Response
Response
Org Hook
Org Hook
Example:1
Example:https://api.github.com/orgs/octocat/hooks/1
Example:https://api.github.com/orgs/octocat/hooks/1/pings
Example:web
Example:["push","pull_request"]
Example:true
Show Child Parameters
Example:2011-09-06T20:39:23Z
Example:2011-09-06T17:26:27Z
Path Parameters
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.”
Path Parameters
Body
application/json
Body
Key/value pairs to provide settings for this webhook. These are defined below.
Show Child Parameters
Determines if notifications are sent when the webhook is triggered. Set to true to send notifications.
Default:true
Example:"web"
Response
application/json
Response
Response
Org Hook
Org Hook
Example:1
Example:https://api.github.com/orgs/octocat/hooks/1
Example:https://api.github.com/orgs/octocat/hooks/1/pings
Example:web
Example:["push","pull_request"]
Example:true
Show Child Parameters
Example:2011-09-06T20:39:23Z
Example:2011-09-06T17:26:27Z
Path Parameters
Body
Delete an organization webhook
Path Parameters
Response
Response
Response