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

# Update a webhook endpoint

`PATCH /webhooks/{id}`

Updates the webhook endpoint. You may edit the url, the list of events, status, secret or name. The target url of the webhook must be unique for the account, if the target url is not unique a client error HTTP 409 will be returned.

## Path parameters

- `id` integer, required

## Response `200`

200

- object
  - `id` string
  - `name` string
  - `url` string
  - `secret` string
  - `status` string
  - `events` string[]

## Other responses

- `400` — 400
- `409` — 409

---

[API](https://skmtc.net/perk/apis/travelperk-api-v1.md) · [All operations](https://skmtc.net/perk/apis/travelperk-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/perk/travelperk-api-v1/versions/6aa8bfa82514/schema)
