Authorizations
Path Parameters
Body
application/json
Rule
Response
200 - application/json
Updated
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": "2025-08-26T12:43:11.112457",
"date_range": "last_180_days",
"group": "data_quality_datasource",
"heron_id": "rul_ji4ixNQ4wSugTd65bUg6nx",
"last_updated": "2025-10-07T12:43:11.112492",
"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"
}
}
Update a rule
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": "2025-08-26T12:43:11.112457",
"date_range": "last_180_days",
"group": "data_quality_datasource",
"heron_id": "rul_ji4ixNQ4wSugTd65bUg6nx",
"last_updated": "2025-10-07T12:43:11.112492",
"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
Show child attributes
Updated
Show child attributes
Was this page helpful?