Update a webhook configuration for a repository
Updates the webhook configuration for a repository. To update more information about the webhook, including the active
state and events
, use “Update a repository webhook.”
Access tokens must have the write:repo_hook
or repo
scope, and GitHub Apps must have the repository_hooks:write
permission.
Path Parameters
Body
application/json
Body
The URL to which the payloads will be delivered.
Example:https://example.com/webhook
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.
Example:"********"
One Of
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.
Example:"0"
Response
200 application/json
Response
Response
Webhook Configuration
Configuration object of the webhook
The URL to which the payloads will be delivered.
Example:https://example.com/webhook
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.
Example:"********"
One Of
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.
Example:"0"
Path Parameters
Body
Ping a repository webhook
This will trigger a ping event to be sent to the hook.
Path Parameters
Response
Response
Response
Path Parameters
Test the push repository webhook
This will trigger the hook with the latest push to the current repository if the hook is subscribed to push
events. If the hook is not subscribed to push
events, the server will respond with 204 but no test POST will be generated.
Note: Previously /repos/:owner/:repo/hooks/:hook_id/test
Path Parameters
Response
Response
Response
Path Parameters
List repository invitations
When authenticating as a user with admin rights to a repository, this endpoint will list all currently open repository invitations.
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
Response
200 application/json
Response
Response
Repository invitations let you manage who you collaborate with.
Unique identifier of the repository invitation.
Example:42
Minimal Repository
Show Child Parameters
Simple User
Show Child Parameters
Simple User
Show Child Parameters
The permission associated with the invitation.
Allowed values:readwriteadmintriagemaintain
Example:read
Example:2016-06-13T14:52:50-05:00
Whether or not the invitation has expired
URL for the repository invitation
Example:https://api.github.com/user/repository-invitations/1
Example:https://github.com/octocat/Hello-World/invitations
Path Parameters
Query Parameters
Update a repository invitation
Path Parameters
invitation_id parameter
Body
application/json
Body
The permissions that the associated user will have on the repository. Valid values are read
, write
, maintain
, triage
, and admin
.
Allowed values:readwritemaintaintriageadmin
Response
200 application/json
Response
Response
Repository Invitation
Repository invitations let you manage who you collaborate with.
Unique identifier of the repository invitation.
Example:42
Minimal Repository
Show Child Parameters
Simple User
Show Child Parameters
Simple User
Show Child Parameters
The permission associated with the invitation.
Allowed values:readwriteadmintriagemaintain
Example:read
Example:2016-06-13T14:52:50-05:00
Whether or not the invitation has expired
URL for the repository invitation
Example:https://api.github.com/user/repository-invitations/1
Example:https://github.com/octocat/Hello-World/invitations