Skip to main content
PATCH
/
webhooks
/
{id}
Update webhook
curl --request PATCH \
  --url https://xquik.com/api/v1/webhooks/{id} \
  --header 'Content-Type: <content-type>' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "url": "<string>",
  "eventTypes": [
    "<string>"
  ],
  "isActive": true
}
'
Free — does not consume credits
curl -X PATCH https://xquik.com/api/v1/webhooks/15 \
  -H "x-api-key: xq_YOUR_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://new-server.com/webhook",
    "eventTypes": ["tweet.new"],
    "isActive": false
  }' | jq

Path parameters

id
string
required
The webhook ID to update.

Headers

x-api-key
string
required
Your API key. This endpoint also accepts session cookie authentication.
Content-Type
string
required
Must be application/json.

Body

At least 1 field is required.
url
string
New HTTPS endpoint URL. HTTP URLs are rejected.
eventTypes
string[]
Updated event types to subscribe to. Replaces the existing list. At least 1 required when provided.
isActive
boolean
Set to false to pause deliveries or true to resume.

Response

id
string
Unique webhook identifier.
url
string
The current delivery endpoint URL.
eventTypes
string[]
Event types this webhook is subscribed to.
isActive
boolean
Whether the webhook is currently active.
createdAt
string
ISO 8601 creation timestamp.
{
  "id": "15",
  "url": "https://new-server.com/webhook",
  "eventTypes": ["tweet.new"],
  "isActive": false,
  "createdAt": "2026-02-24T10:30:00.000Z"
}
This endpoint supports dual authentication: API key (x-api-key header) or session cookie from the dashboard.Related: List Webhooks · Delete Webhook