Update rule by heron_id
curl --request PUT \
--url https://app.herondata.io/api/rules/{heron_id} \
--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-27T23:00:28.895522",
"date_range": "last_180_days",
"group": "data_quality_datasource",
"heron_id": "rul_76pcrdBfV5jiWqcjuqsEzn",
"last_updated": "2026-06-08T23:00:28.895554",
"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"
}
}Rules
Update rule by heron_id
Update a rule
PUT
/
api
/
rules
/
{heron_id}
Update rule by heron_id
curl --request PUT \
--url https://app.herondata.io/api/rules/{heron_id} \
--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-27T23:00:28.895522",
"date_range": "last_180_days",
"group": "data_quality_datasource",
"heron_id": "rul_76pcrdBfV5jiWqcjuqsEzn",
"last_updated": "2026-06-08T23:00:28.895554",
"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"
}
}Was this page helpful?
⌘I