Skip to main content
Update fields on a webhook target. Omitted fields are left unchanged. Required scope: admin

Options

str
required
Webhook target ID.
str | None
Organization override.
str | None
New delivery URL.
str | None
New target name.
list[str] | None
Replacement event list.
list[str] | None
Replacement repository ID filter. The high-level method treats None as omitted; use clear_repo_filter() to send an explicit null.

Response

str
Webhook target ID.
str | None
Webhook target name, or null when unnamed.
str
Delivery URL.
list[str]
Event names delivered to this target.
list[str] | None
Repository allowlist, or null when the target receives events for all repositories.
datetime
Creation time.
datetime
Last update time.