> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chargeapi.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a Webhook Endpoint

Updates a webhook endpoint. Parameters you omit keep their current values.

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://api.chargeapi.co/v1/webhook_endpoints/wh_BGEvrcAAB2Yh06o3XeLANGwlG0snV36F \
    -H "Authorization: Bearer ch_sk_test_..." \
    --json '{
    "description": "Primary webhook endpoint."
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
      "id": "wh_BGEvrcAAB2Yh06o3XeLANGwlG0snV36F",
      "object": "webhook_endpoint",
      "api_version": "2026-03-01",
      "application": null,
      "created": "2026-04-01T00:39:31.689Z",
      "description": "Primary operations webhook endpoint.",
      "enabled_events": ["report.succeeded", "reservation.confirmed", "vehicle.updated"],
      "livemode": false,
      "metadata": {},
      "secret": "whsec_6L4qdzb6RZdAQIfxbo0rMbtLa5TZQEGP",
      "status": "enabled",
      "url": "https://example.com/webhook/endpoint"
  }
  ```
</ResponseExample>

## Parameters

<ParamField body="enabled_events" type="array of string">
  Full list of event types to subscribe to.
</ParamField>

<ParamField body="status" type="string">
  Enable or disable delivery of events.

  Available options: `enabled`, `disabled`
</ParamField>

## More parameters

<ParamField body="description" type="string">
  New description for the endpoint.
</ParamField>

<ParamField body="metadata" type="object">
  Set of key-value pairs that you can attach to an object.
</ParamField>

## Returns

Returns the updated webhook endpoint.
