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

# Webhook bijwerken

> Een webhook wijzigen, uitschakelen of inschakelen

Wijzig een webhook. Stuur alleen de velden mee die je wilt wijzigen. Stuur `status: "enabled"` om
een uitgeschakelde webhook weer te starten. Zie [Foutmeldingen](https://docs.anivahealth.com/nl/concepts/webhooks.md#foutmeldingen).

> [!NOTE]
>
> Vereist de scope `webhooks_manage`.

## Verzoek

### Padparameters

**id** `string` *required*

Webhook-identifier (UUID).

### Bodyparameters

**url** `string`

Nieuwe HTTPS-URL. Dezelfde regels als bij [Aanmaken](https://docs.anivahealth.com/nl/api/webhooks/create-webhook.md).

**enabled\_events** `string[]`

Nieuwe lijst met eventtypes. Vervangt de oude lijst.

**alert\_emails** `string[]`

Nieuwe lijst met 1 tot 5 adressen. Vervangt de oude lijst.

**description** `string`

Nieuwe beschrijving, maximaal 500 tekens. `null` wist deze.

**status** `string`

`enabled` of `disabled`. Uitschakelen annuleert de openstaande leveringen.

## Respons

Bij succes geeft de API `200 OK` terug met de bijgewerkte webhook.

**id** `string` *required*

Webhook-identifier (UUID).

**url** `string` *required*

De HTTPS-URL waarnaar Aniva events verstuurt.

**description** `string`

Vrije tekst voor eigen referentie. Kan `null` zijn.

**enabled\_events** `string[]` *required*

[Eventtypen](https://docs.anivahealth.com/nl/concepts/webhooks.md#events) die deze webhook ontvangt. `*` betekent elk type.

**alert\_emails** `string[]` *required*

Adressen waarnaar Aniva een e-mail stuurt wanneer afleveringen blijven mislukken.

**status** `string` *required*

`enabled` of `disabled`.

**disabled\_at** `string`

ISO 8601 UTC-tijdstip waarop de webhook is uitgeschakeld. `null` zolang deze is ingeschakeld.

**disabled\_reason** `string`

Waarom de webhook is uitgeschakeld. Zie [Foutmeldingen](https://docs.anivahealth.com/nl/concepts/webhooks.md#foutmeldingen). `null`
zolang deze is ingeschakeld.

**failing\_since** `string`

ISO 8601 UTC-tijdstip waarop de huidige reeks mislukkingen begon. `null` wanneer de laatste aflevering is geslaagd.

**previous\_secret\_expires\_at** `string`

ISO 8601 UTC-tijdstip waarop het vorige secret niet meer wordt gebruikt om te ondertekenen. `null` wanneer er geen rotatie bezig is.

**created\_at** `string` *required*

ISO 8601 UTC-tijdstip waarop de webhook is aangemaakt.

**updated\_at** `string` *required*

ISO 8601 UTC-tijdstip van de laatste wijziging.

## Foutresponsen

| Status | Beschrijving |
| - | - |
| `400` | Ongeldig verzoek. Zie de `error`-melding. |
| `401` | Ongeldige API-sleutel. |
| `403` | Geen API-sleutel, of een API-sleutel zonder de scope `webhooks_manage`. |
| `404` | Webhook niet gevonden, of deze hoort bij een andere API-sleutel. |
| `409` | `status: "enabled"` voor een webhook die door Aniva is uitgeschakeld. Neem contact op met Aniva om deze in te schakelen. |
| `500` | Interne serverfout. |

```bash cURL theme={null}
curl --request PATCH \
  --url https://anivahealth.com/api/v1/webhooks/4a6c8e0f-2b4d-4f6a-8c0e-2a4c6e8f0b1d \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "status": "enabled"
  }'
```

```json 200 theme={null}
{
  "id": "4a6c8e0f-2b4d-4f6a-8c0e-2a4c6e8f0b1d",
  "url": "https://partner.example.com/webhooks/aniva",
  "description": "Production",
  "enabled_events": [
    "appointment.confirmed",
    "appointment.results.completed",
    "home_kit_order.results.completed"
  ],
  "alert_emails": ["ops@partner.example.com"],
  "status": "enabled",
  "disabled_at": null,
  "disabled_reason": null,
  "failing_since": null,
  "previous_secret_expires_at": null,
  "created_at": "2026-10-15T08:00:00.000Z",
  "updated_at": "2026-10-16T07:30:00.000Z"
}
```

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

```json 409 theme={null}
{
  "error": "Aniva disabled this endpoint. Contact Aniva to enable it."
}
```


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