API reference / JSON:API

patch/v3/webhooks/{id}

Update a webhook

Operation
v3UpdateWebhook
Authentication
API key

Request

Parameters

idpathrequiredstring

Body

dataobjectrequired

Responses

200The updated webhook.
metaobjectrequired
dataJsonApiResourcerequired
400A malformed parameter, or a filter/include/language this endpoint cannot honour. Refused rather than ignored: an ignored filter returns a full answer that looks filtered.
errorsobject[]required
401No key, an unknown key, a revoked key, or an inactive tenant.
errorsobject[]required
403The key is valid but does not hold `webhooks:write`.
errorsobject[]required
404No such resource.
errorsobject[]required

Example

curl
curl -X PATCH https://api.haavisa.com/v3/webhooks/<id> \
  -H "Authorization: Bearer $HAAVISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "data": "<data>"
  }'

More in JSON:API

Something unclear? The eligibility guide explains the model behind the answers; the errors guide covers the envelope.