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.
Authorization
Authorization In: header
Path Parameters
Webhook Endpoint ID
int32Webhook Subscription ID
int32Query Parameters
Used to scope the request to the specified institution
Header Parameters
The NexHealth API version
"v3.0.0"Request Body
application/json
Edit webhook subscription
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.
int32Set 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}Create webhook subscription POST
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.
Delete webhook subscription DELETE
Permanently deletes the webhook subscription; deliveries for it stop immediately. Returns 204 No Content on success.