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-07-08T11:56:34.312540",
"date_range": "last_180_days",
"group": "data_quality_datasource",
"heron_id": "rul_6pNQcBjqhQzAvH974e6DtR",
"last_updated": "2025-08-19T11:56:34.312577",
"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-07-08T11:56:34.312540",
"date_range": "last_180_days",
"group": "data_quality_datasource",
"heron_id": "rul_6pNQcBjqhQzAvH974e6DtR",
"last_updated": "2025-08-19T11:56:34.312577",
"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
The body is of type object
.
Updated
The response is of type object
.
Was this page helpful?