# Update a webhook subscription

Source: https://docs.vlayers.ai/reference/webhooks/update-webhook-subscription

`PATCH /v1/webhooks/subscriptions/{id}` · scope `webhooks:manage`

Changes the URL, the event types or the description, or pauses deliveries with `enabled: false`. Fields you leave out stay as they are.

Requires an API key with the `webhooks:manage` scope.

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string | yes | The subscription id. Example: `"0192f5a7-3c4d-7e5f-8a6b-7c8d9e0f1a23"` |
| `url` | body | string | no | A new HTTPS endpoint. |
| `eventTypes` | body | string[] | no | The new list of event types (replaces the old one). |
| `description` | body | string | no | A new label, or `null` to clear it. |
| `enabled` | body | boolean | no | `false` pauses deliveries; `true` resumes them. |

## Request

cURL:

```bash
curl -X PATCH "https://api.vlayers.ai/v1/webhooks/subscriptions/$SUBSCRIPTION_ID" \
  -H "Authorization: Bearer $VOICELAYER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": false
  }'
```

TypeScript:

```ts
import { createVoiceLayerClient, updateWebhookSubscription } from '@voicelayer/api';

const client = createVoiceLayerClient({ apiKey: process.env.VOICELAYER_API_KEY!, throwOnError: true });

const { data } = await updateWebhookSubscription({
  client,
  path: {
    id: process.env.SUBSCRIPTION_ID!
  },
  body: {
    enabled: false
  }
});
console.log(data.subscription.enabled);
```

Python:

```python
import os
import voicelayer

config = voicelayer.Configuration(access_token=os.environ["VOICELAYER_API_KEY"])
with voicelayer.ApiClient(config) as client:
    api = voicelayer.WebhooksApi(client)
    result = api.update_webhook_subscription(
        id=os.environ["SUBSCRIPTION_ID"],
        update_webhook_subscription_request=voicelayer.UpdateWebhookSubscriptionRequest.from_dict({
            "enabled": False,
        }),
    )
    print(result.subscription.enabled)
```

## Response `200`

```json
{
  "subscription": {
    "id": "0192f5a7-3c4d-7e5f-8a6b-7c8d9e0f1a23",
    "projectId": "0192f5a1-5e6f-7a7b-8c8d-9e0f1a2b3c45",
    "url": "https://example.com/voicelayer/webhooks",
    "eventTypes": [
      "message.*",
      "conversation.*"
    ],
    "description": "Production receiver",
    "enabled": false,
    "createdByKeyId": "key_7f2a91",
    "restrictTags": [],
    "createdAt": "2026-10-20T15:04:05.000Z",
    "updatedAt": "2026-10-20T15:04:05.000Z"
  }
}
```
