Webhooks

Edit a hook

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

Request

  • Base URL
    https://gogs.example.com/api/v1
  • Auth
    API key in header Authorization

Path parameters

ownerstring required

Repository owner

repostring required

Repository name

idstring required

Hook ID

Request body

eventsstring[]
activeboolean

Response

Success

idinteger
type'gogs' | 'slack' | 'discord' | 'dingtalk'
eventsstring[]
activeboolean
configobject
created_atstring date-time
updated_atstring date-time

Changes

No recorded changes to this operation across all 3 revisions of this API.