---
title: "Update a webhook"
method: PATCH
path: "/v1/webhooks/{id}"
tags: ["Webhooks"]
---

# Update a webhook

`PATCH /v1/webhooks/{id}`

## Request

- Base URL: `https://api.omniaauto.ca`
- URL: `https://api.omniaauto.ca/v1/webhooks/{id}`
- Auth: HTTP bearer

Change the url, query or active flag without losing your place in the stream. Delete-and-recreate would reset the subscription to start from now, so anything that appeared in the gap would never be delivered.

The delivery position is preserved even when you widen the query: a subscription's position is a point in time, not a set of rows. Re-activating a parked webhook clears its failure count.

## Path parameters

- `id` integer, required

## Request body

- object
  - `url` string, uri
  - `query` object
  - `active` boolean

## Response `200`

Updated

## Other responses

- `400`: Bad url, unsupported filter, or nothing to update
- `404`: No such webhook on this key

---

[API](https://skmtc.dev/omniaauto/apis/omniaauto-canadian-vehicle-listings-api.md) · [All operations](https://skmtc.dev/omniaauto/apis/omniaauto-canadian-vehicle-listings-api/llms.txt) · [OpenAPI document](https://skmtc.dev/omniaauto/apis/omniaauto-canadian-vehicle-listings-api/revisions/f46ac0dabe3d?raw)
