Updates the specified webhook endpoint by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Body
-
A human-readable description of the webhook endpoint.
-
List of event types to subscribe to. If not provided, subscribes to all events. Use "*" to subscribe to all events. Available event types:
policy.active,policy.active.media,policy.cancelled,policy.reactivated,application.created,application.started,application.complete,application.expired,application.ineligible,application.manual_review,application.manual_review_approved,assignment.active,assignment.cancelled,certificate.flagged,certificate.approved,certificate.denied,invoice.charge_card_failed,invoice.charge_card_succeeded,category_code.added -
The URL of the webhook endpoint.
curl \
--request PUT 'https://api.1099policy.com/api/v1/webhook_endpoints/whe_KPGc5vEZdvoETu39BNwu2Z' \
--header "Content-Type: application/json" \
--data '{"url":"https://example.com/my/webhook/endpoint","events":["application.complete","application.ineligible","policy.active"],"description":"A webhook endpoint for the example application."}'
{
"url": "https://example.com/my/webhook/endpoint",
"events": [
"application.complete",
"application.ineligible",
"policy.active"
],
"description": "A webhook endpoint for the example application."
}
{
"created": 1646818364,
"description": "string",
"id": "string",
"secret": false,
"url": "https://example.com/my/webhook/endpoint"
}