POST
Habilitar un webhook
Scope:
developers:webhooks.writehttps://api.holded.com/api/v2/webhooks/{webhookId}/enableReactiva un webhook prèviament deshabilitat. El webhook torna a rebre esdeveniments a partir d'aquest moment.
Paràmetres
Paràmetres de ruta
webhookId
stringobligatoriID del webhook (ObjectId hexadecimal de 24 caràcters)
Petició
python
import requests
url = "https://api.holded.com/api/v2/webhooks/507f1f77bcf86cd799439011/enable"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.post(url, headers=headers)
print(response.json())Respostes
Respostes exitoses
204Webhook habilitatRespostes d'error
401API key no vàlida o no proporcionadaapplication/json403Permisos insuficientsapplication/json404Webhook no trobatapplication/json429Límit de sol·licituds exceditapplication/json