v5

latestSwagger 2.0MIT2026-08-03485217850.7 KB
repository

Edit a hook in a repository

patch/repos/{owner}/{repo}/hooks/{id}

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

idinteger required

index of the hook

Request body

activeboolean

Whether the webhook is active and will be triggered

authorization_headerstring

Authorization header to include in webhook requests

branch_filterstring

Branch filter pattern to determine which branches trigger the webhook

configobject

Configuration settings for the webhook

eventsstring[]

List of events that trigger this webhook

namestring

Optional human-readable name

Response

Hook

activeboolean

Whether the webhook is active and will be triggered

authorization_headerstring

Authorization header to include in webhook requests

branch_filterstring

Branch filter pattern to determine which branches trigger the webhook

configobject

Configuration settings for the webhook

created_atstring date-time

The date and time when the webhook was created

eventsstring[]

List of events that trigger this webhook

idinteger

The unique identifier of the webhook

namestring

Optional human-readable name for the webhook

typestring

The type of the webhook (e.g., gitea, slack, discord)

updated_atstring date-time

The date and time when the webhook was last updated