latestOpenAPI 3.0.12026-08-08133541.4 KB

bc197ebb855c

Webhook Subscriptions

Update Webhook

Update a webhook. You can update the endpoint url, event types that the endpoint receives, or temporarily deactivate the webhook.

put/v1/webhooks/{id}

Path parameters

idstring required

Request body

urlstring required

The URL to which webhook events will be sent. Must be a valid HTTPS URL.

group_idstring nullable

ID of the webhook group to which this subscription applies, if any. This is only available for partners.

event_typesWebhookEventType[] required

A list of the webhook event types this subscription will listen to.

status'ACTIVE' | 'INACTIVE' required

The status to set for this webhook subscription.

Example request

{
  "url": "https://example.com/webhook",
  "group_id": "wg_123",
  "status": "ACTIVE"
}

Response

Success

idstring required

ID of the webhook subscription.

group_idstring nullable

ID of the webhook group to which this subscription applies, if any.

urlstring required

The URL to which webhook events will be sent. Must be a valid HTTPS URL.

event_typesWebhookEventType[] required

List of event types that this webhook subscription listens to.

status'ACTIVE' | 'INACTIVE' required

The status of this webhook subscription.

Example response

{
  "id": "wsub_123",
  "group_id": "wg_123",
  "url": "https://example.com/webhook",
  "status": "ACTIVE"
}