Webhook Subscriptions
Create webhook subscription
Creates a webhook subscription on the given webhook endpoint. The subscription is pinned to the API version used to create it (v3.0.0): webhook payloads delivered for this subscription use the v3.0.0 entity contract. To pin a subscription to a different version, create it via that version of this endpoint.
post/webhook_endpoints/{id}/webhook_subscriptions
Path parameters
idinteger required
Webhook Endpoint id
Query parameters
subdomainstring required
Used to scope the request to the specified institution. Required for institution-owned resources; must be omitted for the following resources (passing it returns 400): Onboarding
Headers
Nex-Api-Versionstring required
The NexHealth API version
Request body
Example request
{
"resource_type": "Appointment",
"event": "appointment_insertion",
"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
}