---
title: "Update Webhook"
method: PATCH
path: "/v1/projects/{project_id}/webhooks/{webhook_id}"
tags: ["webhooks"]
---

# Update Webhook

`PATCH /v1/projects/{project_id}/webhooks/{webhook_id}`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/projects/{project_id}/webhooks/{webhook_id}`
- Auth: none declared

## Path parameters

- `webhook_id` string, required
- `project_id` string, required

## Request body

- WebhookPatchIn
  - `url` string, nullable
  - `events` string[], nullable
  - `active` boolean, nullable
  - `rotate_secret` boolean

## Response `200`

Successful Response

- WebhookOut
  - `uuid` string, required
  - `project_uuid` string, required
  - `url` string, required
  - `events` string[], required
  - `active` boolean, required
  - `secret` string, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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