Webhook Subscriptions

Edit webhook subscription

PATCH
/webhook_endpoints/{id}/webhook_subscriptions/{subscription_id}

Updates a webhook subscription. The subdomain parameter is required for request validation even when the subscription is not scoped to an institution (e.g. Onboarding); pass the subdomain of any institution your API user has access to.

Authorization

Authorization
Authorization<token>

In: header

Path Parameters

id*integer

Webhook Endpoint ID

Formatint32
subscription_id*integer

Webhook Subscription ID

Formatint32

Query Parameters

subdomain*string

Used to scope the request to the specified institution

Header Parameters

Nex-Api-Version*string

The NexHealth API version

Default"v3.0.0"

Request Body

application/json

Edit webhook subscription

new_endpoint_id?integer

ID of another webhook endpoint owned by the same API user to move this subscription to. Future webhook deliveries go to the new endpoint. Returns 404 if the ID does not belong to one of your webhook endpoints. After a successful move, subsequent requests for the subscription must use the new endpoint ID in the URL path; requests using the old endpoint ID return 404.

Formatint32
active?boolean

Set to false to pause webhook deliveries for this subscription, or true to resume them. Omitting the param leaves the current value unchanged.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/webhook_endpoints/0/webhook_subscriptions/0?subdomain=string" \  -H "Nex-Api-Version: v3.0.0" \  -H "Content-Type: application/json" \  -d '{}'
{  "code": false,  "description": "Description",  "error": [    "Error message"  ],  "data": {    "id": 1,    "webhook_endpoint_id": 1,    "institution_id": 1,    "resource_type": "Appointment",    "event": "appointment_insertion",    "active": true,    "created_at": "2020-06-05T20:16:57.007Z",    "updated_at": "2020-06-05T20:16:57.007Z"  },  "count": 2}