> ## 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.

# Izbriši webhook

> Izbriši webhook in njegove dostave

Izbriši webhook, njegove skrivnosti in njegove dostave. Tega ni mogoče razveljaviti. Če želiš webhook
začasno ustaviti, pošlji `status: "disabled"` prek [Posodobi webhook](https://docs.anivahealth.com/sl/api/webhooks/update-webhook.md).

> [!NOTE]
>
> Zahteva obseg `webhooks_manage`.

## Zahteva

### Parametri poti

**id** `string` *required*

Identifikator webhooka (UUID).

## Odgovor

Ob uspehu API vrne `204 No Content` s praznim telesom.

## Odgovori z napako

| Status | Opis |
| - | - |
| `400` | Neveljavna zahteva. Glej sporočilo `error`. |
| `401` | Brez ključa API ali neveljaven ključ API. |
| `403` | Tvoj ključ API nima obsega `webhooks_manage`. |
| `404` | Webhook ni najden ali pripada drugemu ključu API. |
| `500` | Notranja napaka strežnika. |

```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.