Delete a repository webhook
DELETE
/repos/{owner}/{repo}/hooks/{hook_id}
Delete a webhook for an organization.
The authenticated user must be a repository owner, or have admin access in the repository, to delete the webhook.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” owner
required
string
The account owner of the repository. The name is not case sensitive.
repo
required
string
The name of the repository without the .git extension. The name is not case sensitive.
hook_id
required
integer
The unique identifier of the hook. You can find this value in the X-GitHub-Hook-ID header of a webhook delivery.
Responses
Section titled “ Responses ”Response
Resource not found
Media type application/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}