updateRepoWebhookSecret
Replace a webhook's secret. One whose secret Forge makes takes an empty body and answers a new secret, the one time it is shown; one whose provider makes it takes the provider's as {"secret":"…"}.
PUT
/repos/{repo_id}/webhooks/{extension_name}/{webhook}/secretPath parameters
Request body JSON required
Returns
400
InvalidRequest | RequestBodyTooDeep
JSON
One of the following:
- InvalidRequestEncoded
- RequestBodyTooDeepEncoded
403
Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON
One of the following:
- ForbiddenEncoded
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
404
ExtensionWebhookNotFound | RepoNotFound
JSON
One of the following:
- ExtensionWebhookNotFoundEncoded
- RepoNotFoundEncoded
413
WriteTooLarge | RequestBodyTooLarge
JSON
One of the following:
- WriteTooLargeEncoded
- RequestBodyTooLargeEncoded
422
ExtensionWebhookSecretRefused
500
RepoFailure | OrgFailure
JSON
One of the following:
- RepoFailureEncoded
- OrgFailureEncoded
503
ExtensionWebhookUnavailable | RepoBusy | SessionUnavailable | RateLimitUnavailable
JSON
One of the following:
- ExtensionWebhookUnavailableEncoded
- RepoBusyEncoded
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded