Skip to Content
Vatis TechAPI docs
Webhooks

Update a webhook

Changes a webhook: send only the fields to change.

Serverhttps://api.eu.vatis.tech

PATCH/v1/webhooks/{id}

Admin key only

A Member key gets 403 admin_only. Roles: Authentication and API keys.

Path parameters

id (required)
The webhook.
Valuesa webhook id, wh_...

Headers

Authorization (required)
An Admin key (Roles). A Member key gets 403 admin_only.
ValuesBearer <api key>

Body fields

application/json

urlstring
Where deliveries go. The API must reach it from the internet: loopback, link-local and private network addresses are refused (400 invalid_parameter).
Valueshttp:// or https://, up to 2048 characters
namestring
A name for your own use.
Valuesup to 200 characters, or null
enabledboolean
Turn deliveries on or off.
Valuestrue, false
retryboolean
Retry failed deliveries.
Valuestrue, false
headersobject
Your own headers for each delivery, with the limits of Create a webhook.
Valuesa JSON object of strings
eventsstring[]
The events it gets, in place of the list it had, with the rules of Create a webhook.
Valuesa JSON list of transcript.completed, transcript.failed or both

Response fields

id
wh_ and 16 hex digits.
url
Where deliveries go.
name
Your name for it, or null.
enabled
Whether deliveries go out. A new webhook is on.
retry
Whether failed deliveries are retried.
headers
Your own headers for each delivery, {} when there are none.
events
The events it gets: transcript.completed, transcript.failed or both, in that order.
created_at
ISO 8601, UTC.

Responses

The webhook as it is now, without its secret.

400 invalid_parameter

A field that is unknown or not valid, or a query parameter (these endpoints take none). The param names it.

400 invalid_request

A body that is not a JSON object.

No key, or a wrong, revoked or expired one.

403 admin_only

A Member key.

No webhook of your workspace has that id.

413 request_too_large

A JSON body over 64 KB.

503 unavailable

The service is busy for a moment. Send the request again after the seconds of the Retry-After header.

Notes

  • A turned-off webhook gets no deliveries, and a job sent with its id is refused: 400 invalid_parameter, param webhook_id.
  • The secret cannot be changed: create a new webhook instead.