curl --request POST \
--url https://app.herondata.io/api/rules/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"rule": {
"condition": "equal",
"date_range": "last_180_days",
"group": "data_quality_datasource",
"metric_label": "unique_transactions",
"name": "notify_if_debt_investment_count_gt_0_last_180d",
"selector": {
"is_portfolio": true
},
"value": 42.42,
"value_str": "mrc_12345678ijwdd321d921"
}
}
'{
"rule": {
"condition": "equal",
"created": "2026-04-04T13:44:34.070431",
"date_range": "last_180_days",
"group": "data_quality_datasource",
"heron_id": "rul_Ertc5AAxmr2kqUzL2Mvv7K",
"last_updated": "2026-05-16T13:44:34.070505",
"metric_label": "unique_transactions",
"name": "notify_if_debt_investment_count_gt_0_last_180d",
"selector": {
"is_portfolio": true
},
"value": 42.42,
"value_str": "mrc_12345678ijwdd321d921"
}
}Create a new rule to send a ‘end_user.review_required’ webhook after processing if rule condition evaluates to true
curl --request POST \
--url https://app.herondata.io/api/rules/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"rule": {
"condition": "equal",
"date_range": "last_180_days",
"group": "data_quality_datasource",
"metric_label": "unique_transactions",
"name": "notify_if_debt_investment_count_gt_0_last_180d",
"selector": {
"is_portfolio": true
},
"value": 42.42,
"value_str": "mrc_12345678ijwdd321d921"
}
}
'{
"rule": {
"condition": "equal",
"created": "2026-04-04T13:44:34.070431",
"date_range": "last_180_days",
"group": "data_quality_datasource",
"heron_id": "rul_Ertc5AAxmr2kqUzL2Mvv7K",
"last_updated": "2026-05-16T13:44:34.070505",
"metric_label": "unique_transactions",
"name": "notify_if_debt_investment_count_gt_0_last_180d",
"selector": {
"is_portfolio": true
},
"value": 42.42,
"value_str": "mrc_12345678ijwdd321d921"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.herondata.io/llms.txt
Use this file to discover all available pages before exploring further.
Was this page helpful?