apicheats.dev Cheat sheet Raw .md
PATCH

Try PATCH /repos/{owner}/{repo}/hooks/{hook_id} — GitHub API

GitHub playground

Update a repository webhook

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

5 body fields
  • config · optional · object — Configuration object of the webhook
  • events · optional · string[] — Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.
  • add_events · optional · string[] — Determines a list of events to be added to the list of events that the Hook triggers for.
  • remove_events · optional · string[] — Determines a list of events to be removed from the list of events that the Hook triggers for.
  • active · optional · boolean — Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.