Skip to Content
Webhooks

Update a webhook configuration

Permissionwebhooks:updateAuthentication
PATCH
/webhooks/{id}

Replaces only supplied fields. An unchanged patch is a successful no-op and retains its ETag.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Header Parameters

If-Match?string

Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.

Request Body

application/json
  1. body
Properties1 <= properties
name?string
Length1 <= length <= 120
url?string
Match^https://
Formaturi
Lengthlength <= 4096
events?array<>
Items1 <= items <= 7
active?boolean

Response Body

Updated (or unchanged) configuration.

application/json
  1. response
id*string
Formatuuid
name*string
Length1 <= length <= 120
url*string

Public HTTPS URL. Credentials, fragments, local/private hosts, and dynamic authorities are rejected.

Match^https://
Formaturi
Lengthlength <= 4096
events*array<>
Items1 <= items <= 7
active*boolean
has_secret*boolean

Whether encrypted signing material is available. The secret value is never returned here.

last_delivery_at*|
Formatdate-time
last_delivery_status*|null
archived_at*|
Formatdate-time
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
Example Request
curl -X PATCH 'https://api.kejue.co/v1/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "url": "http://example.com",  "events": [    "call.completed"  ],  "active": true,  "has_secret": true,  "last_delivery_at": "2019-08-24T14:15:22Z",  "last_delivery_status": "pending",  "archived_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}