Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Response
Webhooks for repositories.
Unique identifier of the webhook.
Example:42
The name of a valid service, use ‘web’ for a webhook.
Example:web
Determines whether the hook is actually triggered on pushes.
Example:true
Determines what events the hook is triggered for. Default: [‘push’].
Example:["push","pull_request"]
Example:2011-09-06T20:39:23Z
Example:2011-09-06T17:26:27Z
Example:https://api.github.com/repos/octocat/Hello-World/hooks/1
Example:https://api.github.com/repos/octocat/Hello-World/hooks/1/test
Example:https://api.github.com/repos/octocat/Hello-World/hooks/1/pings
Repositories can have multiple webhooks installed. Each webhook should have a unique config
. Multiple webhooks can
share the same config
as long as those webhooks do not have any events
that overlap.
Use web
to create a webhook. Default: web
. This parameter only accepts the value web
.
Key/value pairs to provide settings for this webhook. These are defined below.
Determines if notifications are sent when the webhook is triggered. Set to true
to send notifications.
Default:true
Response
Webhooks for repositories.
Unique identifier of the webhook.
Example:42
The name of a valid service, use ‘web’ for a webhook.
Example:web
Determines whether the hook is actually triggered on pushes.
Example:true
Determines what events the hook is triggered for. Default: [‘push’].
Example:["push","pull_request"]
Example:2011-09-06T20:39:23Z
Example:2011-09-06T17:26:27Z
Example:https://api.github.com/repos/octocat/Hello-World/hooks/1
Example:https://api.github.com/repos/octocat/Hello-World/hooks/1/test
Example:https://api.github.com/repos/octocat/Hello-World/hooks/1/pings
Returns a webhook configured in a repository. To get only the webhook config
properties, see “Get a webhook configuration for a repository.”
Response
Webhooks for repositories.
Unique identifier of the webhook.
Example:42
The name of a valid service, use ‘web’ for a webhook.
Example:web
Determines whether the hook is actually triggered on pushes.
Example:true
Determines what events the hook is triggered for. Default: [‘push’].
Example:["push","pull_request"]
Example:2011-09-06T20:39:23Z
Example:2011-09-06T17:26:27Z
Example:https://api.github.com/repos/octocat/Hello-World/hooks/1
Example:https://api.github.com/repos/octocat/Hello-World/hooks/1/test
Example:https://api.github.com/repos/octocat/Hello-World/hooks/1/pings
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.”
Key/value pairs to provide settings for this webhook. These are defined below.
Determines what events the hook is triggered for. This replaces the entire array of events.
Default:push
Determines a list of events to be added to the list of events that the Hook triggers for.
Determines a list of events to be removed from the list of events that the Hook triggers for.
Determines if notifications are sent when the webhook is triggered. Set to true
to send notifications.
Default:true
Response
Webhooks for repositories.
Unique identifier of the webhook.
Example:42
The name of a valid service, use ‘web’ for a webhook.
Example:web
Determines whether the hook is actually triggered on pushes.
Example:true
Determines what events the hook is triggered for. Default: [‘push’].
Example:["push","pull_request"]
Example:2011-09-06T20:39:23Z
Example:2011-09-06T17:26:27Z
Example:https://api.github.com/repos/octocat/Hello-World/hooks/1
Example:https://api.github.com/repos/octocat/Hello-World/hooks/1/test
Example:https://api.github.com/repos/octocat/Hello-World/hooks/1/pings
Response