createRepoWebhookSubscription
Subscribe the repo to a webhook, which gives it the URL to give the provider. A webhook whose secret Forge makes answers its first secret, the one time it is shown; subscribing again answers the same URL and no secret.
POST
/repos/{repo_id}/webhooks/{extension_name}/{webhook}/subscriptionPath parameters
Returns
400
InvalidRequest
403
Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON
One of the following:
- ForbiddenEncoded
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
404
ExtensionWebhookNotFound | RepoNotFound
JSON
One of the following:
- ExtensionWebhookNotFoundEncoded
- RepoNotFoundEncoded
500
RepoFailure | OrgFailure
JSON
One of the following:
- RepoFailureEncoded
- OrgFailureEncoded
503
ExtensionWebhookUnavailable | RepoBusy | SessionUnavailable | RateLimitUnavailable
JSON
One of the following:
- ExtensionWebhookUnavailableEncoded
- RepoBusyEncoded
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded