.nh .TH "GT-WEBHOOK-EDIT" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual" .SH NAME gt-webhook-edit - Edit a webhook .SH SYNOPSIS \fBgt webhook edit [flags]\fP .SH DESCRIPTION Edit a webhook. Only the settings you pass change. .PP Gitea drops the stored authorization header of a webhook on every edit and never shows it, so pass it again with --authorization-header-file. On a terminal, gt asks for it instead; leave the answer empty for a webhook without one. Elsewhere, an edit without one of the authorization flags is refused before gt contacts Gitea. Signing secrets cannot be changed: recreate the webhook to rotate one. .SS JSON FIELDS .EX active, branch_filter, content_type, created_at, events, id, type, updated_at, url .EE .SH OPTIONS \fB--active\fP[=false] Deliver events, or pause the webhook with --active=false .PP \fB--authorization-header\fP="" Authorization value (prefer file input) .PP \fB--authorization-header-file\fP="" Read authorization value from file or - .PP \fB--branch-filter\fP="" Branch glob for push events .PP \fB--clear-authorization\fP[=false] Send no authorization header; on edit, this removes the stored one .PP \fB--config\fP=[] Adapter-specific configuration, for example channel=alerts .PP \fB--events\fP=[] Events that trigger the webhook, comma-separated, replacing the current ones (see gt webhook create --help) .PP \fB-h\fP, \fB--help\fP[=false] help for edit .PP \fB--url\fP="" Delivery URL .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB--account\fP[=false] Manage the webhooks of your account .PP \fB--csv\fP[=""] Output CSV with the specified comma-separated \fBfields\fR, or all fields .PP \fB--cwd\fP="" Working \fBdirectory\fR for repository discovery .PP \fB--debug\fP[=false] Log the method, URL, status, and duration of each HTTP request to stderr .PP \fB--global\fP[=false] Manage the system webhooks of the instance (administrators) .PP \fB--host\fP="" Gitea instance \fBURL\fR, including any base path .PP \fB--interactive\fP[=false] Allow prompts with machine output .PP \fB-q\fP, \fB--jq\fP="" Filter JSON output using a jq \fBexpression\fR; implies --json .PP \fB--json\fP[=""] Output JSON with the specified comma-separated \fBfields\fR, or all fields .PP \fB--no-input\fP[=false] Disable prompts and implicit editor/browser interactions .PP \fB--org\fP="" Manage the webhooks of an organization .PP \fB--remote\fP="" Git \fBremote\fR used for repository discovery .PP \fB-R\fP, \fB--repo\fP="" Select a repository as \fBOWNER/REPO\fR or URL .PP \fB--sudo\fP="" Perform API requests as this \fBuser\fR (requires an administrator account) .PP \fB--user\fP="" Account \fBname\fR on the selected instance .SH EXAMPLE .EX # pause deliveries of a webhook without an authorization header $ gt webhook edit 3 --active=false --clear-authorization # keep the authorization header while changing the events $ gt webhook edit 3 --events push,release --authorization-header-file header.txt .EE .SH SEE ALSO \fBgt-webhook(1)\fP