Webhooks
Aġġorna webhook
Biddel, iddiżattiva jew attiva webhook
PATCH
/
api
/
v1
/
webhooks
/
{id}
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"
}'
{
"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"
}
{
"error": "Webhook not found"
}
{
"error": "Aniva disabled this endpoint. Contact Aniva to enable it."
}
Biddel webhook. Ibgħat biss l-oqsma li trid tbiddel. Ibgħat
status: "enabled" biex
terġa’ tħaddem webhook diżattivat. Ara Avviżi ta’ falliment.
Jeħtieġ is-scope
webhooks_manage.Talba
Parametri tal-path
Parametri tal-body
URL HTTPS ġdid. L-istess regoli bħal f’Oħloq.
Risposta
F’każ ta’ suċċess, l-API tirritorna200 OK bil-webhook aġġornat.
Tipi ta’ avvenimenti li jirċievi dan il-webhook.
* tfisser kull tip.Għaliex il-webhook ġie diżattivat. Ara Avviżi ta’ falliment.
null
waqt li jkun attivat.Mument ISO 8601 UTC meta bdiet is-sensiela attwali ta’ fallimenti.
null meta l-aħħar kunsinna tkun irnexxiet.Mument ISO 8601 UTC meta s-sigriet ta’ qabel ma jibqax jiffirma.
null meta ma jkun hemm l-ebda rotazzjoni għaddejja.Risposti ta’ żball
| Status | Deskrizzjoni |
|---|---|
400 | Talba mhux valida. Ara l-messaġġ error. |
401 | L-ebda ċavetta tal-API, jew ċavetta tal-API mhux valida. |
403 | Iċ-ċavetta tal-API tiegħek m’għandhiex is-scope webhooks_manage. |
404 | Il-webhook ma nstabx, jew jappartjeni lil ċavetta tal-API oħra. |
409 | status: "enabled" fuq webhook li ġie diżattivat minn Aniva. Ikkuntattja lil Aniva biex tattivah. |
500 | Żball intern tas-server. |
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"
}'
{
"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"
}
{
"error": "Webhook not found"
}
{
"error": "Aniva disabled this endpoint. Contact Aniva to enable it."
}
⌘I
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"
}'
{
"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"
}
{
"error": "Webhook not found"
}
{
"error": "Aniva disabled this endpoint. Contact Aniva to enable it."
}