İçeriğe geç

Webhook Sil

DELETE /v1/webhooks/{USER_ID}/6758d280a3d2a660c203b49f
DELETE /v1/webhooks/{USER_ID}/6758d280a3d2a660c203b49f

Kullanıcıya ait bir webhook tanımını sistemden kalıcı olarak siler.

ParametreKonumTipAçıklamaVarsayılanÖrnek
Authorization * headerstringBearer Yetkilendirme Tokeni (Örn: Bearer eyJhb...)-Bearer <TOKEN>
USER_ID * pathstringİşlem yapan kullanıcının kimlik (ID) değeri. UUID formatındadır.--
fetch('https://api.kargomucuz.com/v1/webhooks/{USER_ID}/6758d280a3d2a660c203b49f', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <YOUR_TOKEN>'
}
})
.then(response => response.json())
.then(data => console.log(data));
200: Başarılı
{
"status": false,
"message": "Kullanıcı webhook'u silinemedi.",
"code": 500
}
401: Yetkisiz
{
"status": false,
"message": "Herhangi bir giriş sağlanmadı.",
"code": 500
}