Skip to main content
POST

Disable a webhook

Scope:developers:webhooks.write
https://api.holded.com/api/v2/webhooks/{webhookId}/disable

Disables a webhook subscription, recording who disabled it and why.

Parameters

Path parameters

webhookIdstringrequired

Webhook ID

Request body

object
reasonstringrequired

Reason for disabling the webhook

Request

python
import requests

url = "https://api.holded.com/api/v2/webhooks/507f1f77bcf86cd799439011/disable"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

payload = {
    "reason": "Endpoint returning 5xx errors"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())

Responses

Success responses

204Webhook disabled

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Webhook not foundapplication/json
429Rate limit exceededapplication/json