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

# Smazat webhook

> Smazat webhook a jeho doručení

Smaž webhook, jeho tajné klíče a jeho doručení. Tuto akci nelze vrátit zpět. Pokud chceš webhook
pozastavit, pošli `status: "disabled"` přes [Aktualizovat webhook](https://docs.anivahealth.com/cs/api/webhooks/update-webhook.md).

> [!NOTE]
>
> Vyžaduje scope `webhooks_manage`.

## Požadavek

### Parametry cesty

**id** `string` *required*

Identifikátor webhooku (UUID).

## Odpověď

Při úspěchu API vrátí `204 No Content` s prázdným tělem.

## Chybové odpovědi

| Stav | Popis |
| - | - |
| `400` | Neplatný požadavek. Viz zprávu `error`. |
| `401` | Neplatný API klíč. |
| `403` | Chybí API klíč nebo API klíč nemá scope `webhooks_manage`. |
| `404` | Webhook nebyl nalezen nebo patří jinému API klíči. |
| `500` | Interní chyba serveru. |

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