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

# Update Webhook

> Update the URL, event types, or enabled state of a webhook.

## Path Parameters

<ParamField path="id" type="string" required>
  The webhook UUID.
</ParamField>

## Request

All fields are optional — include only the fields you want to change.

<ParamField body="url" type="string">
  New endpoint URL. Subject to SSRF validation.
</ParamField>

<ParamField body="event_types" type="string[]">
  New set of subscribed event types.
</ParamField>

<ParamField body="enabled" type="boolean">
  Enable or disable the webhook. Disabled webhooks skip delivery.
</ParamField>

<ParamField body="description" type="string">
  Updated description.
</ParamField>

## Example

<CodeGroup>
  ```bash curl theme={null}
  curl -X PATCH https://www.hitheo.ai/api/v1/webhooks/WEBHOOK_ID \
    -H "Authorization: Bearer $THEO_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{ "event_types": ["*"], "enabled": true }'
  ```

  ```typescript SDK theme={null}
  await theo.updateWebhook("WEBHOOK_ID", {
    event_types: ["*"],
    enabled: true,
  });
  ```
</CodeGroup>

### Response

```json theme={null}
{ "updated": true }
```
