Refresh hooks for datasets
You can programmatically refresh datasets using hooks. This is most commonly done at the end of data pipeline jobs.
Webhooks can be called from any REST-friendly environment.
curl -H 'Authorization: <YOUR_API_KEY>' \
API Keys can be created and manged in Settings.
You can refresh datasets from Snowflake by calling the Modelbit SQL API:
call modelbit_refresh_dataset('<dataset_name>', '<branch_name>');
You may need to prefix the call to
modelbit_refresh_dataset with the database and schema configured within Modelbit.
Refreshing datasets during a dbt run can be done in a dbt model's
post_hook="call my_db.my_schema.modelbit_refresh_dataset('my_dataset', 'main');"