---
title: "Update a webhook."
method: PUT
path: "/api/v1/tenants/{tenant_id}/webhooks/{id}"
tags: ["Webhooks"]
---

# Update a webhook.

`PUT /api/v1/tenants/{tenant_id}/webhooks/{id}`

## Request

- Base URL: `https://api.scalix.world`
- URL: `https://api.scalix.world/api/v1/tenants/{tenant_id}/webhooks/{id}`
- Auth: HTTP bearer

Replaces the endpoint URL, event types, secret, and active flag of a
registered webhook.

## Path parameters

- `tenant_id` string, required
- `id` string, required

## Request body

- WebhookRequest: Register a webhook endpoint for a set of event types.
  - `url` string, uri, required
  - `events` string[], required
  - `secret` string, nullable
  - `active` boolean, nullable

## Response `200`

Webhook updated

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid API key
- `404`: Webhook not found
- `500`: Internal error

---

[API](https://skmtc.dev/scalix/apis/scalix-cloud-api.md) · [All operations](https://skmtc.dev/scalix/apis/scalix-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scalix/apis/scalix-cloud-api/revisions/2c04ca0a90bb?raw)
