propgate docs

API reference › WebhooksUpdate endpoint

Update a webhook endpoint

PATCH/v1/webhooks/:id

Pauses an endpoint or changes which events it receives. The URL is not editable — a different URL is a different endpoint, so create one and delete the old.

No CLI command yet — webhooks are managed over the API only.

FieldTypeDescription
disabledbooleanPauses delivery without deleting the endpoint or its history.
eventsarrayReplaces the event list wholesale. Send every event you still want, not only the new one.
curl -s -X PATCH https://api.propgate.dev/v1/webhooks/019fcf9a-3c4d-7e5f-a06b-7c8d9e0f1a2b \
  -H "authorization: Bearer pg_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  -H 'content-type: application/json' \
  -d '{"disabled":true}'
{
  "data": {
    "createdAt": "2026-08-03T12:00:00.000Z",
    "disabled": true,
    "events": [
      "domain.failed",
      "domain.recovered"
    ],
    "id": "019fcf9a-3c4d-7e5f-a06b-7c8d9e0f1a2b",
    "object": "webhook",
    "url": "https://example.com/hooks/propgate"
  },
  "error": null,
  "meta": null
}

Disabling is the reversible option: the endpoint stops receiving events but keeps its id, its secret, and its delivery history. Send disabled: false to resume.