Saltar al contingut principal
POST

Habilitar un webhook

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

Reactiva un webhook prèviament deshabilitat. El webhook torna a rebre esdeveniments a partir d'aquest moment.

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/enable"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

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

Respostes

Respostes exitoses

204Webhook habilitat

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