Webhook Subscriptions
Edit webhook subscription
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.
patch/webhook_endpoints/{id}/webhook_subscriptions/{subscription_id}
Path parameters
idinteger required
Webhook Endpoint id
subscription_idinteger required
Webhook Subscription id
Query parameters
subdomainstring required
Used to scope the request to the specified institution
Headers
Nex-Api-Versionstring required
The NexHealth API version
Request body
Example request
{
"new_endpoint_id": 1,
"active": true
}Response
Successful
Example response
{
"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
}