Saltar al contingut principal
DELETE

Eliminar un webhook

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

Elimina permanentment una subscripció webhook. Els esdeveniments ja enviats no es veuen afectats.

Paràmetres

Paràmetres de ruta

webhookIdstringobligatori

ID del webhook (ObjectId hexadecimal de 24 caràcters)

Petició

python
import requests

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

response = requests.delete(url, headers=headers)
print(response.json())

Respostes

Respostes exitoses

204Webhook eliminat

Respostes d'error

401API key no vàlida o no proporcionadaapplication/json
403Permisos insuficientsapplication/json
404Webhook no trobatapplication/json
429Límit de sol·licituds exceditapplication/json