Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mesa.dev/llms.txt

Use this file to discover all available pages before exploring further.

Update a webhook target. Omitted fields are left unchanged.
const target = await mesa.webhookTargets.update({
  webhookTargetId: 'wht_123',
  events: ['push', 'change.created'],
});
Clear the repository filter and make the target organization-wide:
await mesa.webhookTargets.update({
  webhookTargetId: 'wht_123',
  repo_ids: null,
});

Options

webhookTargetId
string
required
Webhook target ID.
org
string | undefined
Organization override.
url
string | undefined
New delivery URL.
name
string | null | undefined
New human-readable name. Pass null to clear it.
events
string[] | undefined
Replacement event subscription list.
repo_ids
string[] | null | undefined
Replacement repository filter. Pass null to clear the filter and receive organization-wide events.

Response

Returns the updated webhook target object with id, name, url, events, repo_ids, created_at, and updated_at.

Required scope

admin