Webhooks
Update a webhook endpoint
Change the URL or event types, or pause and resume. Requires the `webhooks:write` scope.
PATCH
Change the URL or event types, or pause and resume.
Requires the webhooks:write scope.
secretKeyheader
AuthorizationBearer <token>A secret key: wc_live_... or wc_test_.... Keep it on your server.
id*stringMatch
^whk_[0-9A-Za-z]{6,64}$application/json- body
url?stringFormat
uriLength
length <= 2048events?array<>Items
1 <= items <= 50disabled?booleantrue to pause deliveries, false to resume (also resets the failure count).
The updated endpoint.
application/json- response
id*stringMatch
^whk_[0-9A-Za-z]{6,64}$mode*stringlive or test. Always the mode of the API key that made the request.
Value in
"live""test"url*stringevents*array<>Event types sent to this endpoint.
disabled_at*|Set when the endpoint was disabled, by you or after ten failed deliveries in a row.
Format
date-timecreated_at*stringISO 8601 with a UTC offset.
Format
date-timecurl -X PATCH 'https://api.whocoming.com/v1/webhook-endpoints/string' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "id": "string", "mode": "live", "url": "string", "events": [ "rsvp.created" ], "disabled_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z"}