Saltar al contenido principal
POST

Deshabilitar un webhook

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

Deshabilita un webhook, dejando de enviarle eventos. Se registra quién lo deshabilitó y el motivo.

Parámetros

Parámetros de ruta

webhookIdstringobligatorio

ID del webhook (ObjectId hexadecimal de 24 caracteres)

Cuerpo de la petición

object
reasonstringrequired

Motivo por el que se deshabilita el webhook (obligatorio)

Petición

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())

Respuestas

Respuestas exitosas

204Webhook deshabilitado

Respuestas de error

400El campo reason es obligatorioapplication/json
401API key inválida o no proporcionadaapplication/json
403Permisos insuficientesapplication/json
404Webhook no encontradoapplication/json
429Límite de solicitudes excedidoapplication/json