/admin/hooksCreate a global system webhook
Creates a global system webhook with a configured delivery type and destination. Supply type and config, including the required content_type and url configuration values, and optionally set events and activation options. A 201 response returns the created hook.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Global webhook definition containing its delivery type, configuration, and optional event and activation settings.
Whether the webhook is active; defaults to false when omitted.
The authorization header value to include when delivering webhook requests.
The branch pattern that limits which branch changes trigger the webhook.
CreateHookOptionConfig has all config options in it required are "content_type" and "url" Required
The list of events that trigger webhook deliveries.
The webhook integration type: forgejo, dingtalk, discord, gitea, gogs, msteams, slack, telegram, feishu, wechatwork, or packagist.
Deprecated: use Metadata instead
type and config are required. type must be one of: forgejo, dingtalk, discord, gitea, gogs, msteams, slack, telegram, feishu, wechatwork, or packagist. The config object must include content_type and url.