Skip to main content
Update fields on a webhook target. Omitted fields are left unchanged. Required scope: admin
target = await mesa.webhook_targets.update(
    webhook_target_id="wh_123",
    url="https://example.com/mesa/new-webhook",
    events=["push"],
)

Options

webhook_target_id
str
required
Webhook target ID.
org
str | None
Organization override.
url
str | None
New delivery URL.
name
str | None
New target name.
events
list[str] | None
Replacement event list.
repo_ids
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

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