Skip to main content

Test the push repository webhook

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`

POST/repos/{owner}/{repo}/hooks/{hook_id}/tests
Source
github-v3-rest.json
Revision
f5f067c1e6f6
Active snapshot
85e53e3d0d65

Request

Path Parameters
owner string
required
repo string
required
hook_id integer
required

Responses

Response

application/json Basic Error object

Resource not found

documentation_url string
optional
message string
optional
status string
optional
url string
optional