BillOS v1
Console llms.txt OpenAPI
PATCH/webhooks/{id}

Update a webhook endpoint

PATCH /webhooks/{id}

Requires the businesses scope.

{"active": true} also re-arms an endpoint that was auto-disabled after sustained failure.

Path parameters

NameTypeDescription
idstringrequiredWebhook endpoint id.

Body

FieldTypeDescription
urlstring
eventsarray of string
businessIdstringSet null to widen back to every business under the key.
activebooleanfalse pauses the endpoint: new events are not queued for it, pending ones stop delivering.

Response

200: { "ok": true, … }

FieldTypeDescription
okbooleanrequired
webhookWebhookEndpointrequiredA webhook subscription. Deliveries are POSTed to url, signed with secret (see the Webhooks guide).

Errors: 400, 401, 403, 404, 429. Every failure answers { "error": …, "reason": … }. Branch on reason.

PATCH /webhooks/{id}
curl -X PATCH "$BASE/webhooks/$DOC_ID" \
  -H "X-Api-Key: $KEY"
const res = await fetch(`${BASE}/webhooks/${DOC_ID}`, {
  method: 'PATCH',
  headers: {
    'X-Api-Key': KEY,
  },
})
const data = await res.json()
if (!data.ok) throw new Error(data.reason)
import requests
res = requests.patch(
    f"{BASE}/webhooks/{DOC_ID}",
    headers={"X-Api-Key": KEY},
)
data = res.json()
Set BASE to https://api.billos.co.il/v1 and KEY to your bk_live_… key, or a bk_test_… key to run it against the sandbox.
Manage your businesses, keys and webhooks in the BillOS Console.