ResoneraDocs
Webhooks

Update a webhook endpoint

PATCH
/webhooks/endpoints/{endpoint_id}

Updates the URL, events, or description, or pauses the endpoint with enabled: false. Events that occur while an endpoint is paused are not delivered later.

Requires the webhooks:manage scope.

Authorization

apiKey
headerX-API-Key<token>

Your API key, from Settings → API access in the dashboard.

Path Parameters

endpoint_id*string

The webhook endpoint's id.

Formatuuid

Request Body

application/json
  1. body
url?string
Formaturi
events?array<>
description?string
Lengthlength <= 200
enabled?boolean

Response Body

The updated endpoint.

application/json
  1. response
id?string
Formatuuid
url?string
Formaturi
description?string
events?array<>
enabled?boolean
last_success_at?|
Formatdate-time
last_failure_at?|
Formatdate-time
created_at?string
Formatdate-time
updated_at?string
Formatdate-time
curl -X PATCH "https://example.com/webhooks/endpoints/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "events": [      "call.ended"    ],    "enabled": true  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "url": "http://example.com",  "description": "string",  "events": [    "call.ended"  ],  "enabled": true,  "last_success_at": "2019-08-24T14:15:22Z",  "last_failure_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}