Skip to main content
Unary · Webhooks Updates a webhook’s configuration. Use this method to:
  • Change webhook name or description
  • Change webhook scopes (the target repositories or organization)
Note: The webhook type and provider cannot be changed after creation.

Examples

  • Update webhook name: Changes the webhook’s display name.
  • Update webhook scopes: Changes the webhook’s target repositories.

Endpoint

Send a Bearer token as described in Authentication. If your organization uses a custom management-plane domain, replace https://app.ona.com with that domain.

Request example

Request

gitpod.v1.UpdateWebhookRequest UpdateWebhookRequest updates a webhook’s configuration.

Response

gitpod.v1.UpdateWebhookResponse
Webhook represents a webhook endpoint for receiving SCM events.gitpod.v1.Webhook
Metadata contains organizational and ownership information.gitpod.v1.Webhook.Metadata
Spec contains the webhook configuration.gitpod.v1.Webhook.Spec
WebhookOrganizationScope represents an SCM organization in the webhook’s scope.gitpod.v1.WebhookOrganizationScope
WebhookRepositoryScope represents a repository in the webhook’s scope. Contains SCM repository information needed to generate execution contexts. The clone URL can be derived as https://{host}/{owner}/{name}.gitgitpod.v1.WebhookRepositoryScope
WebhookProvider identifies the Git provider.
WebhookType determines the scope level of the webhook.