Authorizations
Body
application/json
Response
201 - application/json
OK
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": "2025-09-10T14:35:32.569349",
"date_range": "last_180_days",
"group": "data_quality_datasource",
"heron_id": "rul_CDvekSS6KntJGkXGuLmNhn",
"last_updated": "2025-10-22T14:35:32.569400",
"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": "2025-09-10T14:35:32.569349",
"date_range": "last_180_days",
"group": "data_quality_datasource",
"heron_id": "rul_CDvekSS6KntJGkXGuLmNhn",
"last_updated": "2025-10-22T14:35:32.569400",
"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"
}
}Show child attributes
OK
Show child attributes
Was this page helpful?