Webhooks
Update a webhook configuration
Permission
webhooks:updateAuthenticationPATCH
Replaces only supplied fields. An unchanged patch is a successful no-op and retains its ETag.
bearerAuthheader
AuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringFormat
uuidIf-Match?stringOptional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.
application/json- body
Properties
1 <= propertiesname?stringLength
1 <= length <= 120url?stringMatch
^https://Format
uriLength
length <= 4096events?array<>Items
1 <= items <= 7active?booleanUpdated (or unchanged) configuration.
application/json- response
id*stringFormat
uuidname*stringLength
1 <= length <= 120url*stringPublic HTTPS URL. Credentials, fragments, local/private hosts, and dynamic authorities are rejected.
Match
^https://Format
uriLength
length <= 4096events*array<>Items
1 <= items <= 7active*booleanhas_secret*booleanWhether encrypted signing material is available. The secret value is never returned here.
last_delivery_at*|Format
date-timelast_delivery_status*|nullarchived_at*|Format
date-timecreated_at*stringFormat
date-timeupdated_at*stringFormat
date-timecurl -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"}