POST/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts

Redeliver a repository webhook delivery

Submits a redelivery attempt for a delivery made by a webhook configured in a repository. Use the repository owner, repository name, hook ID, and delivery ID to identify the delivery to retry. A 202 response confirms that the redelivery request was accepted.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

4 parameters
ownerstringrequired
The account owner of the repository; the name is not case-sensitive.
repostringrequired
The repository name without the `.git` extension; the name is not case-sensitive.
hook_idintegerrequired
The unique identifier of the webhook. You can find it in the `X-GitHub-Hook-ID` header of a webhook delivery.
delivery_idintegerrequired
The unique identifier of the webhook delivery to redeliver.

3 status codes
202Confirms that the redelivery request was accepted and returns an object.
400Returned when the request is invalid.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
422Returned when validation fails or the endpoint has been spammed.
messagestringrequired
documentation_urlstringrequired
errorsarray<object>optional

Error handling

A 400 is returned when the request is invalid. A 422 is returned when validation fails or the endpoint has been spammed. The owner path parameter and repo path parameter must identify the repository, while the hook_id path parameter and delivery_id path parameter must identify the webhook and delivery.