Supprimer un endpoint de webhook
curl --request DELETE \
--url https://www.qwairy.co/api/v1/webhooks/{webhookId} \
--header 'Authorization: <authorization>' \
--header 'If-Match: <if-match>'import requests
url = "https://www.qwairy.co/api/v1/webhooks/{webhookId}"
headers = {
"Authorization": "<authorization>",
"If-Match": "<if-match>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: '<authorization>', 'If-Match': '<if-match>'}
};
fetch('https://www.qwairy.co/api/v1/webhooks/{webhookId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Endpoints de webhook
Supprimer un endpoint de webhook
Supprimez un endpoint de webhook d’intégration avec If-Match. Les envois en attente sont annulés et le journal reste lisible 30 jours après la suppression.
DELETE
https://www.qwairy.co
/
api
/
v1
/
webhooks
/
{webhookId}
Supprimer un endpoint de webhook
curl --request DELETE \
--url https://www.qwairy.co/api/v1/webhooks/{webhookId} \
--header 'Authorization: <authorization>' \
--header 'If-Match: <if-match>'import requests
url = "https://www.qwairy.co/api/v1/webhooks/{webhookId}"
headers = {
"Authorization": "<authorization>",
"If-Match": "<if-match>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: '<authorization>', 'If-Match': '<if-match>'}
};
fetch('https://www.qwairy.co/api/v1/webhooks/{webhookId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Supprime l’endpoint. Les envois en attente sont annulés. Le journal d’envoi reste lisible pendant 30 jours.
Les webhooks d’intégration nécessitent une offre Business, Agency Business ou Enterprise active. Modifier un endpoint exige aussi un jeton d’API dont l’accès en écriture a été activé par un Propriétaire ou un Manager. Consultez Webhooks d’intégration et Écrire des données.
Consultez Codes d’erreur pour les erreurs d’authentification, d’offre, d’idempotence et de serveur. Un jeton sans accès en écriture renvoie
L’
ETag de Obtenir un endpoint de webhook, guillemets compris. Utilisez * pour supprimer sans condition.Réponse
Renvoie204 sans corps.
Requête synthétique
curl -X DELETE "https://www.qwairy.co/api/v1/webhooks/$WEBHOOK_ID" \
-H "Authorization: Bearer $QWAIRY_API_TOKEN" \
-H 'If-Match: "1"'
Erreurs
| Statut | Code | Cause |
|---|---|---|
404 | RESOURCE_NOT_FOUND | L’endpoint est absent ou appartient à une autre équipe |
412 | PRECONDITION_FAILED | L’endpoint a changé depuis votre lecture |
428 | PRECONDITION_REQUIRED | If-Match est absent |
403 API_KEY_READ_ONLY. Sur 429, respectez Retry-After. Si le limiteur d’écriture est indisponible ou si les écritures sont suspendues, la requête renvoie 503 SERVICE_UNAVAILABLE et rien ne change.
