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

# Update a webhook endpoint

`PATCH /webhooks/endpoints/{id}`

## Request

- Base URL: `https://api.tellandgo.com/api/v1/agent`
- URL: `https://api.tellandgo.com/api/v1/agent/webhooks/endpoints/{id}`
- Auth: API key in header `X-API-Key`

Requires the `webhooks:write` scope.

## Path parameters

- `id` string, required

## Request body

- WebhookEndpointUpdateRequest
  - `url` string, uri
  - `events` WebhookEvent[]
  - `description` string, nullable
  - `active` boolean

## Response `200`

Webhook endpoint updated

- WebhookEndpointResponse
  - `success` boolean, required
  - `endpoint` WebhookEndpoint, required
    - `id` string, required
    - `url` string, uri, required
    - `description` string
    - `events` WebhookEvent[], required
    - `active` boolean, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Other responses

- `400`: Invalid request
- `401`: Authentication required or invalid
- `403`: API key lacks the required scope
- `404`: Resource not found

---

[API](https://skmtc.dev/tellandgo/apis/tell-go-travel-agent-api.md) · [All operations](https://skmtc.dev/tellandgo/apis/tell-go-travel-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tellandgo/apis/tell-go-travel-agent-api/revisions/3d84f816eb4f?raw)
