API reference / Webhooks and integrations
Update a webhook endpoint
PATCH/v1/orgs/{orgId}/webhooks/{webhookId}
Change the URL, events, or disabled state (webhooks:manage, AAL2). Enabling in production requires the production-API grant.
Before you call it
- Permission
webhooks:manage - Second factorRequired for browser sessions. An API key with the scope replaces it.
Parameters
| Parameter | What it does |
|---|---|
orgIdpath, uuidrequired | The organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list. |
webhookIdpath, uuidrequired | A webhook endpoint id. |
Request body
| Field | What it does |
|---|---|
urlstring (uri) | No description in the spec yet. |
descriptionstring | No description in the spec yet. |
eventsstring[] | No description in the spec yet. |
disabledboolean | No description in the spec yet. |
Response 200
Updated endpoint
| Field | What it does |
|---|---|
idstring (uuid)required | No description in the spec yet. |
urlstringrequired | No description in the spec yet. |
descriptionstring | No description in the spec yet. |
eventsstring[]required | No description in the spec yet. |
disabled_atstring (date-time) | No description in the spec yet. |
failingbooleanrequired | No description in the spec yet. |
created_atstring (date-time)required | No description in the spec yet. |
Errors to handle
| Code | What it means and what to do |
|---|---|
invalid_url422 | webhook URL must be https |
invalid_event422 | unknown event: |
Every error is a Problem document. Branch on code; quote request_id to support.