apicheats.dev Cheat sheet Raw .md
POST

Try POST /repos/{owner}/{repo}/hooks — GitHub API

GitHub playground

Create 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

4 body fields
  • name · optional · string — Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.
  • config · optional · object — Key/value pairs to provide settings for this webhook.
  • events · optional · string[] — Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for.
  • active · optional · boolean — Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.