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

# Update a webhook endpoint

`PATCH /webhook_endpoints/{id}`

## Request

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

Changes the URL and/or the subscribed events. A new URL must be verified again (`pending_verification`).

## Path parameters

- `id` string, required

## Request body

- object
  - `url` string, uri
  - `events` WebhookEvent[]

## Response `200`

The updated endpoint.

- WebhookEndpoint
  - `object` 'webhook_endpoint', required
  - `id` string, required
  - `url` string, uri, required
  - `events` WebhookEvent[], required
  - `status` 'pending_verification' | 'active' | 'disabled', required
  - `livemode` boolean: Mode of the key that created the endpoint. Test keys see and manage only test endpoints, live keys only live endpoints; test-mode events are delivered only to test endpoints and live events only to live endpoints.
  - `created_at` string, date-time, required

## Other responses

- `default`: Error. Branch on `error.code`; `suggestion` (optional) says how to fix the request. A known path called with the wrong method answers `404 not_found` with an `Allow` header listing the methods it accepts.

---

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