Skip to main content
PATCH
Edit a hook

Authorizations

Authorization
string
header
required

Personal access token. Use format: token {YOUR_ACCESS_TOKEN}

Path Parameters

owner
string
required

Repository owner

repo
string
required

Repository name

id
string
required

Hook ID

Body

application/json
config
object
required
events
string[]
active
boolean

Response

Success

id
integer
type
enum<string>
Available options:
gogs,
slack,
discord,
dingtalk
events
string[]
active
boolean
config
object
created_at
string<date-time>
updated_at
string<date-time>