---
search:
  tags:
    - Webhooks
    - PATCH
seo:
  description: >-
    Update a webhook. Reference for the PATCH /webhooks/{id} endpoint in the
    BillionSend API.
sidebar:
  label: Update a webhook
  badge: PATCH
title: Update a webhook
type: openapi-operation
---
`PATCH /webhooks/{id}`

**Request body** (`application/json`)

- `endpoint` (string<uri>)
- `events` (string[])
- `status` (string)
- `inbox_ids` (string<uuid>[] | null) — BillionSend extension: inbox events and email.received reach this endpoint only for these inboxes of the team (at most 100). null means every inbox. Omitted: unchanged.

Request body example:

```json
{
  "endpoint": "http://example.com",
  "events": [
    "email.scheduled"
  ],
  "status": "enabled",
  "inbox_ids": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ]
}
```

**Responses**

- `200` — Webhook updated
- `401` — Missing, malformed, unknown or revoked API key
- `404` — Not found
- `422` — Validation error
- `429` — Over the rate limit (rate\_limit\_exceeded, with Retry-After)

Response example, 200:

```json
{
  "object": "webhook",
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
```
