> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anivahealth.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Eyða vefkrók

> Eyða vefkrók og afhendingum hans

Eyða vefkrók, leyndarlyklum hans og afhendingum. Þetta er ekki hægt að afturkalla. Til að gera hlé á
vefkrók skaltu senda `status: "disabled"` með [Uppfæra vefkrók](https://docs.anivahealth.com/is/api/webhooks/update-webhook.md).

> [!NOTE]
>
> Krefst heimildarinnar `webhooks_manage`.

## Beiðni

### Slóðarfæribreytur

**id** `string` *required*

Auðkenni vefkróks (UUID).

## Svar

Ef vel tekst til skilar API-ið `204 No Content` með tómu meginmáli.

## Villusvör

| Staða | Lýsing |
| - | - |
| `400` | Ógild beiðni. Sjá `error`-skilaboðin. |
| `401` | Enginn API-lykill eða ógildur API-lykill. |
| `403` | API-lykillinn þinn hefur ekki aðgangssviðið `webhooks_manage`. |
| `404` | Vefkrókur fannst ekki eða hann tilheyrir öðrum API-lykli. |
| `500` | Innri villa á netþjóni. |

```bash cURL theme={null}
curl --request DELETE \
  --url https://anivahealth.com/api/v1/webhooks/4a6c8e0f-2b4d-4f6a-8c0e-2a4c6e8f0b1d \
  --header 'x-api-key: YOUR_API_KEY'
```

```json 404 theme={null}
{
  "error": "Webhook not found"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.