Webhook Endpoints
Edit webhook endpoint
This endpoint updates a webhook endpoint belonging to the authenticated API user; target_url must use HTTPS in production.
Authorization
Authorization Authorization<token>
In: header
Path Parameters
id*integer
Webhook Endpoint ID
Format
int32Header Parameters
Nex-Api-Version*string
The NexHealth API version
Default
"v3.0.0"Request Body
application/json
Edit webhook endpoint
target_url?string
URL to send POST requests to in response to subscribed events. Must use HTTPS in production
active?boolean
Set to false to stop deliveries; this also deactivates every subscription on the endpoint. Setting it back to true does not reactivate them, so re-enable each subscription. Omitting the param leaves the current value unchanged
Response Body
application/vnd.Nexhealth+json;version=2
application/vnd.Nexhealth+json;version=2
application/vnd.Nexhealth+json;version=2
application/vnd.Nexhealth+json;version=2
application/vnd.Nexhealth+json;version=2
curl -X PATCH "https://example.com/webhook_endpoints/0" \ -H "Nex-Api-Version: v3.0.0" \ -H "Content-Type: application/json" \ -d '{}'{ "code": false, "description": "Description", "error": [ "Error message" ], "data": { "id": 1, "target_url": "http://localhost:8085/hook", "secret_key": "NArWk7gdI96Bdn", "active": true, "created_at": "2020-06-05T20:16:57.007Z", "updated_at": "2020-06-05T20:16:57.007Z" }, "count": 2}