---
title: "Test the push repository webhook"
method: POST
path: "/repos/{owner}/{repo}/hooks/{hook_id}/tests"
tags: ["repos"]
---

# Test the push repository webhook

`POST /repos/{owner}/{repo}/hooks/{hook_id}/tests`

This will trigger the hook with the latest push to the current repository if the hook is subscribed to `push` events. If the hook is not subscribed to `push` events, the server will respond with 204 but no test POST will be generated.

> [!NOTE]
> Previously `/repos/:owner/:repo/hooks/:hook_id/test`

## Path parameters

- `owner` string, required
- `repo` string, required
- `hook_id` integer, required

## Response `204`

Response

## Other responses

- `404` — Resource not found

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-3.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-3/versions/dc0584ac4e13/schema)
