---
title: "Change a webhook endpoint"
method: PATCH
path: "/v1/webhooks/{id}"
---

# Change a webhook endpoint

`PATCH /v1/webhooks/{id}`

## Request

- Base URL: `https://swissnewco.tollwyn.com`
- URL: `https://swissnewco.tollwyn.com/v1/webhooks/{id}`
- Auth: HTTP bearer

## Request body

- object
  - `url` string
  - `filters` WebhookFilters
    - `canton` string[]
    - `zip` string[]
    - `legal_form` string[]
  - `enabled` boolean
  - `rotate_secret` boolean

## Response `200`

The endpoint

## Other responses

- `400`: An error
- `401`: An error
- `404`: An error
- `429`: An error

---

[API](https://skmtc.dev/tollwyn/apis/swiss-newco-feed-api.md) · [All operations](https://skmtc.dev/tollwyn/apis/swiss-newco-feed-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tollwyn/apis/swiss-newco-feed-api/revisions/98f96727982d?raw)
