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

# Update a Webhook

> Change a subscription's URL, events, or project, or pause it.

Only the fields you send are changed.

## Configuration

### Header Parameters

<ParamField required header="x-api-key" type="string">
  Your ZBD API key.
</ParamField>

<ParamField initialValue="application/json" header="Content-Type" type="string">
  Content Type
</ParamField>

### Path Parameters

<ParamField required path="subscriptionId" type="string">
  The `subscription_id` from Create a Webhook.
</ParamField>

### Body Parameters

<ParamField body="url" type="string">
  A new HTTPS URL.
</ParamField>

<ParamField body="events" type="string[]">
  The event types to send.
</ParamField>

<ParamField body="project_id" type="string">
  Only send events for this project.
</ParamField>

<ParamField body="status" type="string">
  `active` or `paused`.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH https://api.zbdpay.com/api/v1/webhooks/subscriptions/sub_51a2 \
    -H "x-api-key: YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{ "status": "paused" }'
  ```
</RequestExample>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.