PUT /webhooks/{webhook_id}
Replace a webhook's configuration.
TypeScript SDKThe npm client, generated from the API spec.Python SDKThe PyPI client, sync and async.
| Method | Path |
|---|---|
| PUT | /v1/webhooks/{webhook_id} |
Changing the URL cancels outstanding deliveries, clears verification and approval, and sends another ping. State and signing secret cannot be set here. Updating description or subscriptions preserves approval.
Path parameters
webhook_idstringrequired
curl -X PUT "https://api.ellipsis.dev/v1/webhooks/{webhook_id}" \
-H "Authorization: Bearer $ELLIPSIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"events": [
"session.create"
],
"url": "https://example.com/hooks"
}'import os
from ellipsis import Ellipsis
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
result = client.webhooks.update(
"...",
["session.create"],
"https://example.com/hooks",
)
print(result)import { Ellipsis } from '@ellipsis-dev/sdk';
const client = new Ellipsis({
apiKey: process.env.ELLIPSIS_API_TOKEN!,
});
const result = await client.webhooks.update(
'...',
{ events: ["session.create"], url: "https://example.com/hooks" },
);
console.log(result);Request
Example request body
{
"url": "https://example.com/hooks"
}
Body parameters
descriptionstring
eventsarray<string>required
Explicit event subscriptions. Currently only session.create is supported. Pings are sent independently of subscriptions.
urlstringrequired
The single public HTTPS URL to receive signed POST requests. Changing it requires verification and approval again.
Response
Example response · 200
{
}