Skip to main content
PUT
/
api
/
partner_webhooks
/
{id}
{
  "url": "https://example.com/new-webhook",
  "filterTypes": ["shipment.created", "shipment.cancelled"],
  "description": "Updated production webhook"
}
{
  "id": "ep_2KtRQ8fTStWPKrXP",
  "url": "https://example.com/new-webhook",
  "filterTypes": ["shipment.created", "shipment.cancelled"],
  "active": true,
  "created_at": "2024-01-15T10:00:00Z",
  "description": "Updated production webhook"
}

Request Parameters

Path Parameters

id
string
required
Webhook endpoint ID

Request Body

url
string
New HTTPS URL where webhook events will be sent
filterTypes
array
New list of event types to subscribe to (null to keep existing)
description
string
New description of the webhook endpoint
{
  "url": "https://example.com/new-webhook",
  "filterTypes": ["shipment.created", "shipment.cancelled"],
  "description": "Updated production webhook"
}
{
  "id": "ep_2KtRQ8fTStWPKrXP",
  "url": "https://example.com/new-webhook",
  "filterTypes": ["shipment.created", "shipment.cancelled"],
  "active": true,
  "created_at": "2024-01-15T10:00:00Z",
  "description": "Updated production webhook"
}
You can also use PATCH /api/partner_webhooks/{id} with the same request body format.

Response Fields

id
string
Unique identifier for the webhook endpoint
url
string
HTTPS URL where webhook events are sent
filterTypes
array
Event types this endpoint is subscribed to
active
boolean
Whether the endpoint is active
created_at
string
When the endpoint was created (ISO 8601 format)
description
string
Description of the webhook endpoint