This page documents the canonical HTTP contract. Switch to the CLI example when you want the operator workflow.
Omitted keys are unchanged. Null filters or metadata clear them; null retryPolicy resets to defaults. Empty PATCH returns the current subscription. Queued deliveries retain their URL and retry-policy snapshot. Attempts processed while paused terminate as failed; resuming does not revive those failed deliveries.
Path parameters
subscription_idrequiredstring
Subscription ID.
| Name | Type | Description |
|---|---|---|
| subscription_idrequired | string | Subscription ID. |
Body parameters
url· optionalstring
Replace endpoint URL; absolute http(s), without credentials, with production HTTPS/public-host checks.
events· optionalarray<string>
Replace with supported events/families; values are trimmed, lowercased, and deduplicated.
enabled· optionalboolean
Set true (active) or false (paused); null is coerced to false.
filters· optionalobject
Replace filters; null clears to {}. Supports exact nested matches and conditions.
metadata· optionalobject
Replace opaque metadata; null clears to {}.
retryPolicy· optionalobject
Replace retry policy, not merge it. Omitted keys reset to defaults; values are clamped to create-endpoint bounds.
| Name | Type | Description |
|---|---|---|
| url | string | Replace endpoint URL; absolute http(s), without credentials, with production HTTPS/public-host checks. |
| events | array<string> | Replace with supported events/families; values are trimmed, lowercased, and deduplicated. |
| enabled | boolean | Set true (active) or false (paused); null is coerced to false. |
| filters | object | Replace filters; null clears to {}. Supports exact nested matches and conditions. |
| metadata | object | Replace opaque metadata; null clears to {}. |
| retryPolicy | object | Replace retry policy, not merge it. Omitted keys reset to defaults; values are clamped to create-endpoint bounds. |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid patch payload. |
| 401 | Invalid API key or missing auth. |
| 403 | Missing webhooks:write scope. |
| 404 | Subscription not found. |
| 422 | Malformed body field types. |
