Refresh hooks for datasets
You can programmatically refresh datasets using webhooks. This is most commonly done at the end of data pipeline jobs.
Webhooks
Webhooks can be called from any REST-friendly environment.
curl -H 'Authorization: <YOUR_API_KEY>' \
https://<MODELBIT_REGION>.modelbit.com/api/c/<WORKSPACE_NAME>/main/datasets/<DATASET_NAME>/refresh
API Keys can be created and manged in Settings.
Alerts
To be alerted when a refresh of a dataset fails, head to Settings
and click Alerting
. Connect Slack, if you haven't already, then enable the toggle for Dataset Refreshes
.
If a dataset refresh fails you'll get an alert similar to this: