POST
Disable a webhook
Scope:
developers:webhooks.writehttps://api.holded.com/api/v2/webhooks/{webhookId}/disableDisables a webhook subscription, recording who disabled it and why.
Parameters
Path parameters
webhookId
stringrequiredWebhook 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 disabledError responses
400Bad requestapplication/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Webhook not foundapplication/json429Rate limit exceededapplication/json