---
title: "Update an endpoint's url, events, description or active flag"
method: PATCH
path: "/v1/webhooks/{id}"
---

# Update an endpoint's url, events, description or active flag

`PATCH /v1/webhooks/{id}`

## Request

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

Partial update. An invalid or non-public HTTPS `url` fails with HTTP 400. `event_types` is filtered against the supported list exactly as on create; read the response back to confirm what was stored. Setting `active: true` also resets `failure_count` to 0, which is how you re-enable an endpoint we auto-disabled after repeated delivery failures.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `url` string, uri
  - `event_types` WebhookEventType[]
  - `description` string
  - `active` boolean: true also clears the failure counter.

## Response `200`

Updated endpoint (id, url, event_types, description, active).

- object
  - `ok` true
  - `data` WebhookEndpoint: A registered webhook endpoint. The signing secret is NOT part of this shape: it is returned once, on create, and never again. `failure_count` and `last_delivery_at` are present on the list and detail responses but not on the create or update responses.
    - `id` string, uuid
    - `url` string, uri
    - `event_types` WebhookEventType[]: The stored subscription, after unrecognised names were filtered out.
    - `description` string, nullable
    - `active` boolean
    - `failure_count` integer: Consecutive delivery failures. Reset to 0 by a PATCH setting active: true.
    - `last_delivery_at` string, date-time, nullable
    - `created_at` string, date-time

## Other responses

- `401`: Missing or invalid API key.
- `404`: `NOT_FOUND` — no such endpoint on your organisation, or the update failed.

---

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