Webhook
This is the preferred implementation type for data events whenever available.
File: Webhook implementations are configured in the connector's events configuration and use the same webhook endpoints as connector-level events.
See details of how webhooks are implemented here: [doc:connector-builder/events].
Webhook implementation for data collections is exactly the same as for connector-level webhook events.
Configuration Example
# spec.yml
name: Collection Name
events:
created:
implementationType: webhook
updated:
implementationType: webhook
deleted:
implementationType: webhook
Implementaiton
Data collection webhook events are implemented in the same way as the normal webhook events. See Webhook Events for detailed implementation.
Implementation files are located in the data collection folder and named as <event-type>-<function-name>.<ext>
, for example created-webhook-subscribe.js
or created-webhook-handle.map.yml
.
Updated 2 days ago